152k views
23 votes
write a program that creates a dictionry containing course numbers and the room numbers of the rooms whhere the courses meet

1 Answer

10 votes

Answer:

course_class = {'CS101' : '3004', 'CS102' : '4501', 'CS103' : '6755', 'NT110' : '1244', 'CM241' : '1411'}

Step-by-step explanation:

A dictionary is a data structure in python that is unordered and unindexed. It stores data in key-values pairs with each pair separated by a comma and all the items enclosed with curly braces. It is also assigned to a variable name.

The dict() function can also be used to create a dictionary variable.

User GrayCat
by
5.0k points