Skip to content

Instantly share code, notes, and snippets.

@s2t2
Last active November 8, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s2t2/8643985828d329984926736b72bfa1fe to your computer and use it in GitHub Desktop.
Save s2t2/8643985828d329984926736b72bfa1fe to your computer and use it in GitHub Desktop.
courses = {
'CS101': {'room_number': '3004', 'instructor': 'Haynes', 'meeting_time': '8:00 am'},
'CS102': {'room_number': '4501', 'instructor': 'Alvarado', 'meeting_time': '9:00 am'},
'CS103': {'room_number': '6755', 'instructor': 'Rich', 'meeting_time': '10:00 am'},
'NT110': {'room_number': '1244', 'instructor': 'Burke', 'meeting_time': '11:00 am'},
'CM241': {'room_number': '1411', 'instructor': 'Lee', 'meeting_time': '1:00 pm'},
}
course_number = input("Please input a course number. It should be one of: 'CS101', 'CS102', 'CS103', 'NT110', 'CM241'.")
print("PRINTING COURSE INFORMATION FOR " + course_number + ":")
print(courses[course_number])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment