Question: students = { 1 :John, 2 :Bob, 3 :Ann } Please write a python code to do following action. 1 .

students ={"1":"John","2":"Bob","3":"Ann"}Please write a python code to do following action.
1. Add new student with id ="5", and name = "Mike"
2. Updated the student with id ="3" with name = Annie
3. How to retrieve student name from id ="2"?
4. How to remove the student with id ="1"?
5. How to check if the key =4 exists?

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