English

Write the push operation of stack containing names using class.

Advertisements
Advertisements

Question

Write the push operation of stack containing names using class.

Very Short Answer
Advertisements

Solution

The push() method adds a name to the top of the stack using append().

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Stacks & Queues in list - EXERCISE [Page 123]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 6 Stacks & Queues in list
EXERCISE | Q 12. | Page 123
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×