Question: 6. Nest dictionaries within a list, stuClass. a) Create three ctuInfo diction anes with the keys: name and value: gpa. _.dd appropri ite values for

6. Nest dictionaries within a list, stuClass. a)
6. Nest dictionaries within a list, stuClass. a) Create three ctuInfo diction anes with the keys: name and value: gpa. _.dd appropri ite values for each key. b) _. eate a list _ tuClass, ad all di tionaries to thi : list and print the list. ") Use a loc to point all studer to fro n the list of aid class. d) Use a lco, to print all the gpa. e) Change the 'at _tude '- $ you to 4.". 1) Add a new student into to the list. g) Use a loop to print all the names and ypa with proper format as the output below. Example output All students in the list: [{'name": "tom cat' , 'gpa": 3.456), {'name": "jerry mouse', "gpa': 4.e), {'name": "sponge bob", 'gpa': 3.99)] All students Information: student 1 {"name": "tom cat" , "203": 3.456} student 2 {'name": "Jerry mouse", "gpa": 4.0} student 3 {'name": "sponge bob", "epa' : 3.99] All ma information: 3.45614.013.991 All the updated information: Tom Cat 3.46 Jerry Mouse 4.09 Sponge Bob 4.08 John Smith 3.95

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!