Question: Create a dictionary named student_grades with the following key-value pairs: Ahmed has a grade of 85, Mona has a grade of 92, and Ali

 Create a dictionary named  

Create a dictionary named "student_grades" with the following key-value pairs: "Ahmed" has a grade of 85, "Mona" has a grade of 92, and "Ali" has a grade of 78. Perform two operations on the dictionary: 1) Add a new student named "Hossam" with a grade of 88. 2) Update Ali's grade to 95. Write the code to create the dictionary and perform these operations.

Step by Step Solution

3.44 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the code to create the dictionary studentgrades and per... View full answer

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 Programming Questions!