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 trialNova Anderson
176 PointsI don't understand why I'm receiving an undefined error when I'm giving the undefined concept a value by setting Name=
SOS
Name = Grace
2 Answers
Steven Parker
231,275 PointsYou're defining Name, but where was Grace defined?
Perhaps you meant to assign name with the literal string "Grace" — but you just forgot to put the quotes around it.
Gosh I forgot to check the challenge itself, but as Alexander pointed out, you have to be careful about case. So you don't want to define Name here anyway. Define name according to the challenge instructions.
Alexander Davison
65,469 PointsTo add to Steven Parker's post, the variable name Name
and the variable name name
are different. At first glance, they look the same, but since Python is case-sensitive, meaning that uppercase and lowercase letters are different, they are different. The challenge wanted you to call it name
, not Name
!
-–—–-–—–-
The value of the variable doesn't matter to the challenge, as long as the value is a string. It's only the name of the variable is important to the challenge.