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 Meet Python Variables

Zean-Xuen Thong
Zean-Xuen Thong
2,057 Points

I have problems trying to target "first_name" var as "Ada".

The console answers this error when i ask it to run "hello.py" File "/home/treehouse/workspace/hello.py", line 2
print (first_name)
IndentationError: unexpected indent

here is the screenshot: https://w.trhou.se/leffwggesj

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

Thanks for sharing a snapshot of your Workspace!!

This is due to a sneaky space at the beginning of line 2. That's the "unexpected indent" it's referring to. We need to be very careful with indentations in Python as it's a very important aspect to the language as you'll learn soon.

first_name = "Ada"
 print(first_name) #< remove beginning space here
print("Hello, Ethan")
print("Ethan is learning Python")