Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

[Book Name, Author, Price] 

Each of these records are nested together to form a nested list. Write the following user defined functions in Python to perform the specified operations on the stack named books.

(i) Push_element(BList): It takes the nested list as an argument and pushes a list object containing book name and author, which have price less than 300.

Answer:

Answer by student

Function in Python that takes a nested list as an argument and pushes a list object containing book name and author, which have price less than 300 onto a stack - Teachoo.png

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo