Computer Science (Python) > computational-thinking-and-programming-2 > Data Structures
Write a function in Python,
Push(Vehicle)Vehicle{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:
SafariNexonCurrent Session
Community Stats
Track Your Progress
Sign up to save your practice progress and get personalized insights across all topics.