help?? Function Name: findTicket() Parameters: ticketDictionary ( dict ) Returns: cheapestTicket ( tuple ) Description:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

help?? Function Name: findTicket() Parameters: ticketDictionary ( dict ) Returns: cheapestTicket ( tuple ) Description:

Post by answerhappygod »

help??
Function Name: findTicket() Parameters: ticketDictionary ( dict) Returns: cheapestTicket ( tuple ) Description: You and yourfriends decided to see the Winter Olympic Games in Beijing, China.You want to find the cheapest airplane ticket for your trip. Givena ticket dictionary with names of airlines ( str ) as keys andprices ( int ) as values, write a function that returns a tu- plewith the name and price of the cheapest available option. If theticket dictionary does not have any airline-price pairs, you shouldreturn "No tickets available!" Note: No two flights will have thesame ticket price, and no plane ticket price will exceed$10,000.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply