Question
Ford is looking at their car lineup. Their database manager is gone so they have tasked you to use a single Python file to help
Ford is looking at their car lineup. Their database manager is gone so they have tasked you to use a single Python file to help them gather some information. Below is the data they found: Name Year Introduced Production of the current model Generation Vehicle Information Ka 1996 2014 3rd Generation Developed by Ford Brazil as a supermini car Fiesta 1976 2017 7th Generation (Mark VIII) Ford's long-running subcompact line based on global B-car Platform Focus 1998 2018 3rd Generation (Mark III) Ford's Compact car based on global C-car platform Mondeo 1992 2012 2nd Generation (Fusion) Mid-sized passenger sedan with "One-Ford" design based on CD4 platform. Fusion 2005 2014 5th Generation (Mondeo) Similar to Mondero. Taurus 1986 2009 6th generation Full-sized car based on D3 platform Fiesta ST 2013 2013 1st Generation (6th Generation) Fiesta's high-performance factory tune Focus RS 2015 2015 1st Generation (3rd Generation) Special high-performance Focus developed by SVT Mustang 1964 2014 6th Generation Ford's long-running pony/muscle car GT 2004 2016 2nd Generation Ford's limited production supercar inspired by the legendary race car GT40 Write a Python program that has the following: Create a dictionary for each vehicle that contains the fields/keys and values listed above. Write a function that will take a list of these dictionaries and return a new dictionary with the 'name-value as the key and the dictionary as the value. Write a function that will go through the newly created dictionary and return a list of all the car's names, sorted alphabetically. Write a function that will go through the newly created dictionary return a dictionary of all the cars' names and years introduced. Use a print statement to show the results of the function from line 3, each on its own line. Use a print statement to show the results of the function from line 4 to display in the format: year: name. Sort by year introduced. Help me with this python question.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started