PLEASE DO THIS IN PYTHON 3.0 You are given the following dictionary of flights.
ID: 3764112 • Letter: P
Question
PLEASE DO THIS IN PYTHON 3.0
You are given the following dictionary of flights. The key represents an airport city, the value is the list of cities that can be reached with a direct connection. Ultimately, you should have a program that prompts the user for a city name and your program will list the destinations that are reachable in 0 or 1 connections. For example: What airport are you leaving from? Burlington Departing from Burlington you can reach the following destinations with zero or one connections: Boston direct Montreal via Boston Memphis via Boston Washington via Boston New York direct Los Angeles via New York Fort Lauderdale via New York Boston via New York Los Angeles direct San Diego via Los Angeles Boston via Los Angeles Washington via Los AngelesExplanation / Answer
Complete Program:
Sample Output:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.