Find the total combined altitude using for loops


Python Problem

airports = [{'name': 'Cincinnati', 'altitude': 2000, 'code': 'CVG'}, {'name': 'Chicago', 'altitude': 1800, 'code': 'OHA'}, {'name': 'Indianapolis', 'altitude': 1700, 'code': 'INY'}]

• Given the "airports" list above, create 3 lists, one of the airport names, one of the airport altitudes and one of airport codes using for loops... using list comprehensions...using another technique

• Given the 3 lists from #1, combine them back into a list of dictionaries using the most efficient technique you can think of

• Given the "airports" list above, find the total combined altitude using for loops... using the sum() function... using the reduce() function.

The response should include a reference list. Using double-space, Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Find the total combined altitude using for loops
Reference No:- TGS03091975

Expected delivery within 24 Hours