Question: Do not use any print ( ) statements unless expressly told to do so . Store all results in a variable. When possible, try to

Do not use any print() statements unless expressly told to do so. Store all results in a variable. When possible, try to answer the question in more than one way to demonstrate your programming chops! Key Value Student Number Grade (%)10552366.71487
1. Write a Python script to construct the initial dictionary
2. Write a Python script to add a student to the dictionary: Student 99 with a grade of 55%
3. Write a Python script to check whether Student 38 is in the class. Challenge: Write the solution in two ways
4. Write a Python script to get Student 10s grade.
5. Write a Python script to get Student 38s grade.
6. Write a Python script to check whether anyone got 50% in the course.
7. Write a Python script to see how many people got 55% in the course. Use library functions.
8. Write a Python script to see how many people got 55% in the course. Do not use any list library functions.
9. Write a Python script to check whether anyone got over 50% in the course.
10. Write a Python script to find everyone who got over 50% in the course.
11. Draw a memory diagram of the following code to visualize its execution and identify the lesson to be learned about dictionaries (and lists and sets)
grades_before = grades.values()
del grades[23]
#grades.pop(23, None)
#grades.pop(23)
grades_after = grades.values()
Challenge: We will see sorting algorithms later in the course 12. Write a Python script that sorts this dictionary, returning the list of student numbers in ascending order, along with their grade.

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!