Computer Science (Python) > computational-thinking-and-programming-2 > Data Structures
A list containing records of products is given as:
L = [("Laptop", 90000), ("Mobile", 30000), ("Pen", 50), ("Headphones", 1500)]Write the following user-defined functions to perform operations on a stack named
Product(I) Push_element()
50Pop_element()"Stack Empty"Current Session
Community Stats
Track Your Progress
Sign up to save your practice progress and get personalized insights across all topics.