help?? Function Name: findTicket() Parameters: ticketDictionary ( dict ) Returns: cheapestTicket ( tuple ) Description:
Posted: Tue Jul 12, 2022 8:09 am
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.
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.