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
Write a Python script to construct the initial dictionary
Write a Python script to add a student to the dictionary: Student with a grade of
Write a Python script to check whether Student is in the class. Challenge: Write the solution in two ways
Write a Python script to get Student s grade.
Write a Python script to get Student s grade.
Write a Python script to check whether anyone got in the course.
Write a Python script to see how many people got in the course. Use library functions.
Write a Python script to see how many people got in the course. Do not use any list library functions.
Write a Python script to check whether anyone got over in the course.
Write a Python script to find everyone who got over in the course.
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
gradesbefore grades.values
del grades
#grades.pop None
#grades.pop
gradesafter grades.values
Challenge: We will see sorting algorithms later in the course 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
