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!

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

I'm trying to replicate what I am being shown in a video and this is the error I see. Any ideas?

first_name = "Ada" print(first_name) print("These", "will be", "joined together by spaces")

print("Hello, Katie") print("Katie is learning Python")

console shows:

treehouse:~/workspace$ python hello.py
File "hello.py", line 2

                    ^                                                                                      

SyntaxError: unexpected EOF while parsing
treehouse:~/workspace$ python hello.py
File "hello.py", line 2

                    ^                                                                                      

SyntaxError: unexpected EOF while parsing
treehouse:~/workspace$ print
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.?) treehouse:~/workspace$ print
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.
?) treehouse:~/workspace$

Steven Parker
Steven Parker
225,757 Points

It's not clear from the pasted-in code excerpt. But you can make a snapshot of your workspace and post the link to it here. That will allow us to replicate the issue and give you a specific answer.