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 trialShmuel Zilberman
1,409 Pointserr
Hello, craig
Traceback (most recent call last):
File "hello.py", line 3, in <module>
if frist_name == "Craig":
NameError: name 'frist_name' is not defined
WHY DO I GET THIS ERR???
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, shmuel zilberman ! Unfortunately, we really can't help much without seeing all of your code usually, but I do have a thought on this. It says that frist_name
is undefined. My guess is that earlier in your code, you defined a variable named first_name
. Note the spelling difference between "frist" and "first". Try changing:
if frist_name == "Craig":
To this:
if first_name == "Craig":
Hope this solves it, but let us know if youΒ΄re still stuck!