Question: Question 3 : ( 1 5 marks ) Based on the material presented in SS 3 lecture, answer the following question. M 1 1 0
Question : marks
Based on the material presented in SS lecture, answer the following question.
M TMA
Page of Spring
Given two lists, names and grades, containing five names and five corresponding grades, respectively, create a Python program to generate a dictionary.
The dictionary should have five initial records, each representing a student's name and their corresponding grade.
Additionally, the program should prompt the user to enter values for two more pairs, and these should be added to the dictionary using a loop.
Follow the instructions below:
Use the provided lists below:
names Ameen "Bassam", "Kamal", "Abdallah", "Jad"
grades
Create a dictionary named studentrecords that includes five initial records, with each pair consisting of a name and a grade from the given lists based on their indices.
Prompt the user to enter values for two additional pairs name and grade using a loop.
Add the userinput pairs to the studentrecords dictionary.
After updating the dictionary, print the final contents of studentrecords.
Include proper screenshots that include the code and output with a background that shows your desktop.
The expected output should be as follows:
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
