Class-12: Computer Science | Stack program using dictionary in Python | CBSE Board Paper 2023

Опубликовано: 23 Март 2026
на канале: Technology Planet
704
16

Class-12: Computer Science | Stack program using dictionary in Python | CBSE Board Paper 202

Write a function in Python, Push (Vehicle) where, Vehicle is a dictionary containing details of vehicles - { Car _Name: Maker}.
The function should push the name of car manufactured by 'TATA'
(including all the possible cases like Tata, TaTa, etc.) to the stack.
For example:
If the dictionary contains the following data:
Vehicle={"Santro":"Hyundai","Nexon":"TATA","Safari":"Tata"}
The stack should contain
Safari
Nexon