Question
In Python : CTI110, NOS125, CTS120, , and NET125. Write down the start time, room, and instructor for each class. Then write a program that
In Python: CTI110, NOS125, CTS120, , and NET125. Write down the start time, room, and instructor for each class. Then write a program that creates three dictionaries, times, rooms, and instructors. Each will have the class IDs as key and the appropriate values. In a loop, show a user a list of the IDs and ask them to enter one or XXX100 to exit the loop and program. If they don't enter any of the IDs or XXX100, display an error and ask them again. When they enter a valid ID (use the variable name course), display the time, room, and instructor like this:
print('The details for course', course, 'are:')
print('Room:', rooms[course])
print('Instructor:', instructors[course])
print('Time:', times[course])
INFO: NOS-125- Classroom Hours Tuesday 06:00PM Room 00118 -T. Edward NOS-120 - Classroom Hours Tuesday 06:00PM Room 00118 -T. Edward CTS-120 Classroom Hours Tuesday 12:30PM - 02:10PM, Room 00122 M. Forteson NET-120 Classroom Hours 12:30PM - 02:10PM 125 M. Forteson
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started