Question: Python 1. Create a dictionary called scores that uses the data below. Data: Jeff = 90 Chris = 59 Hannah = 88 Michelle = 99
Python
1.
Create a dictionary called scores that uses the data below. Data: Jeff = 90 Chris = 59 Hannah = 88 Michelle = 99 Now create two functions: addChangeScore with parameters: name and score. addChangeScore will add a person to the scores dictionary using the name as the key and the score as the value. delScore with parameter: name. delScore will delete a person from the scores dictionary using the name as the key. Use the function to add this new entry Joel = 78. Now change Jeff's score to 79. Now delete Hannah's entry. Be sure to use the functions to to do those operations. Finally, print the dictionary using a FOR loop. Just print the key and then the value.
___________________________________________________
2.
Use the scores dictionary from #8 (yes, you must copy and paste it here again). Create a FOR loop that loops through the dictionary. If a value is > 60, print the string "(name) passed the test.". If it is not, print "(name) did not pass the test."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
