0% found this document useful (0 votes)
2 views4 pages

Python Stack Operations and Examples

The document outlines Python programming tasks related to implementing basic Stack operations using lists. It includes exercises for performing PUSH, POP, and traversal operations, displaying unique vowels from a word, and managing employee details in a Stack. Each task is accompanied by a prompt for output demonstration.

Uploaded by

praphuldivyanshi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Python Stack Operations and Examples

The document outlines Python programming tasks related to implementing basic Stack operations using lists. It includes exercises for performing PUSH, POP, and traversal operations, displaying unique vowels from a word, and managing employee details in a Stack. Each task is accompanied by a prompt for output demonstration.

Uploaded by

praphuldivyanshi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DATA STRUCTURES IN

PYTHON
Q1) Write a Python program to implement all basic
operations of a Stack, such as adding element (PUSH
operation), removing element (POP operation) and
displaying the Stack elements (Traversal operation) using
lists.

Output:
Q2) Write a program to display unique vowels
present in the given word using Stack.
Output:

Q3) Write a program to create a Stack called


Employee, to perform the basic operations on Stack
using list. The list contains the two values-employee
number and employee name. The program should
include the options for addition, deletion and display
of employee details.
Output:

You might also like