Python Introducing Dictionaries Introducing Dictionaries Creating a Dictionary

Shavez Memon
seal-mask
.a{fill-rule:evenodd;}techdegree
Shavez Memon
Python Development Techdegree Student 2,447 Points

Why am I getting an error?

Hello, the question is asking: Create a dictionary with the following key value pairs: 1) key: 'name', value: '', 2) key: 'topic', value: 'python'. Assign this dictionary to a variable called student.

Could you tell me why my answer is not going through? Thanks in advance!

creating_dictionaries.py
student = {name:'', topic:'python'}

1 Answer

Steven Parker
Steven Parker
207,988 Points

Like the values, the keys must also be enclosed in quotes.