d1={"CS101":3004,"CS102":4501,"CS103":6755,"NT110":1244,"CM241":1411}
d2={"CS101":"Haynes","CS102":"Alvarado","CS103":"Rich","NT110":"Burke","CM241":"Lee"}
d3={"CS101":"8:00am","CS102":"9:00am","CS103":"10:00am","NT110":"11:00AM","CM241":"1:00pm"}
coursenumber=input("Enter the coursenumber:")
coursenumber=coursenumber.upper()
if coursenumber in d1.keys():
print("Course Room Number:",d1.get(coursenumber))
print("Instructor:",d2.get(coursenumber))
print("Meeting Time:",d3.get(coursenumber))
else:
print("Course number Doesn't exist")
RESULT:
Enter the coursenumber:cs101
Course Room Number: 3004
Instructor: Haynes
Meeting Time: 8:00am
Phyton prog COMPLETE. Problem 1: Write a program that creates a directory containing course numbers and...
IN python, Write a program that creates a dictionary containing course numbers and the room numbers where the courses meet. The dictionary should contain the following key:value pairs. Course Number (key) Room Number (value) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary containing course numbers and the names of the instructors that teach each course. The dictionary should have the following key:value pairs. Course Number (key) Instructor (value) CS101 Haynes CS102...
Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program that creates a dictionary named rooms containing course numbers and the room numbers of the rooms where the courses meet. The dictionary should have the following key-value pairs: Course Number (Key) Room Number (Value) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary named instructors containing course numbers and the names of the instructors that teach...
Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program that creates a dictionary named rooms containing course numbers and the room numbers of the rooms where the courses meet. The dictionary should have the following key-value pairs: Course Number (Key) Room Number (Value) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary named instructors containing course numbers and the names of the instructors that teach...
Using Python. Please help! The output should looks like below. Please follow the emphasis. I think it just prompt user to input course name. Write a modular program that creates a dictionary containing course numbers and the room numbers of the rooms where the courses meet. The dictionary should have the following key- value pairs: Course Number (key) Room Number (value) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary containing course...
Write a Java program that creates and manipulates a directory of names, telephone numbers. The following information will be stored for each person in the directory: - Name (Last, First) - Home telephone number You should keep the entire collection ordered by key value (the combination of last and first names). Your program should be able to perform the following basic functions: - Search and display the contents of a particular entry - Display the entire directory - Delete an...