Computer Science (Python) > computational-thinking-and-programming-2 > Data Structures
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
Current Session
Community Stats
Track Your Progress
Sign up to save your practice progress and get personalized insights across all topics.