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 Python Basics (2015) Python for Beginners Create a variable

I think Treehouse does not recognize my code properly

It said create a variable named name and then assign a string value being my name so I am pretty sure that

name = "Donghyun"

should work but it says it could not find my variable.

variable.py
name = "Donghyun" 

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I copy/pasted your code into the challenge and it passed. My best suggestion is to relaunch the challenge and try it again, because your code is just fine. If that fails, you need to contact the Treehouse support. This should not be failing.

Hmm still continues to fail for me. I am learning HTML at the same time but when i use the HTML workspace it works completely fine. When I'm doing python it fails to recognize the variable. I think I should contact treehouse support. Thanks for your reply :)