Question: Write a python code that: 1 . Use a file chooser to locate the file on your computer. Do not ask the user to enter
Write a python code that:
Use a file chooser to locate the file on your computer. Do not ask the user to enter the filename.
Read the file into a list of lists.
Print the average age in a nice format.
Print the value of the highest GPA and the person who achieved that GPA in a nice,
readable format.
Create a dictionary from the list in part Notice that you will have a nested dictionary
with the primary key being the number.
Print the dictionary in a nice, readable format. For example, each line will look
something like the following:
Student ID Name: Ferguson GPA: Age:
Allow the user to enter a number and change the gpa for the associated student.
student.
Allow the user to enter a new student with the following data: ID name
Ratliff, GPA and age Add this student to the dictionary.
Use the file chooser to create an output file. Save all the data from the dictionary in the
newly created file. The file should be a space delimited text file in the same format as
Week File.Txt ie number name gpa and age
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
