Question: Write a python script that asks (prompts) the user to input three student names and their ID numbers one at a time using the keyboard,

Write a python script that asks (prompts) the user to input three student names and their ID numbers one at a time using the keyboard, and stores each name and id in a dictionary in three separate entries. Then writes each entry of the dictionary in a text file called student_records.txt.

For instance an example of the "student_records.txt" text file can be

Student Records:

Name1: Alex

ID1: 101

Name2: Brian

ID2: 102

Name2: Michael

ID2: 103

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