Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introducing Dictionaries Introducing Dictionaries Creating a Dictionary

Ali Abadi
Ali Abadi
2,885 Points

Need help, on the task for introducing dictionaries

Not sure what is wrong with my code. Can anyone help me with this? Thanks

creating_dictionaries.py
student = {'name':'Ali', 'topic':'Python'}
topic = student['topic']

1 Answer

Antony .
Antony .
2,824 Points

Hi Ali Abadi

Looks like your only barrier is that your topic key has a value of "Python", but it's supposed to be all lower case.

Antony .
Antony .
2,824 Points

Challenges like this can be case sensitive sometimes.

Ali Abadi
Ali Abadi
2,885 Points

oh right. Thanks