Write code to create a Python dictionary called class. Add two entries to the dictionary: Associate the key 'class_name' with the value 'MAT123', and associate the key 'sect_num' with '211_145' PYTHON
Python code:
#creating a dictionary called called Class
Class={}
#adding to it key class_name and value MAT123
Class["class_name"]="MAT123"
#adding to it key sect_num and value 211_145
Class["sect_num"]="211_145"
#printing the Class dictionary
print(Class)
Screenshot:
Output:
Get Answers For Free
Most questions answered within 1 hours.