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 Correct errors

Can I get hints on how to get past print("Hello")?Thanks

Cant seem to get past the first two lines.I need a hint on what Im doing wrong!Thanks

errors.py
print("Hello")
Hello

print("Let's do some math!")
print(5 + 1)

print("Thanks for playing along!')
Bruno Correia
Bruno Correia
3,114 Points

Hi Lani,

I'm not sure I completely understand your question but you do not need to write Hello below the print("Hello").

By writing print("Hello") you are telling Python to print the word Hello, which it will do. You don't need to write it yourself in the next line. Let me know if this helps!

2 Answers

Abdishakur Hassan
Abdishakur Hassan
3,585 Points

Hi Lani.

There are corrections you have to do to pass the challange.

Here is how it should look like :

print("Hello")
print("name")

print("Let's do some math!")
print(str(5) + "a")

print("Thanks for playing along!")
          ```
Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,702 Points

So the challenge does say to not delete lines of code.

The script below has some errors in it. I know you might still be a little uncomfortable with code but I'm sure you can fix the mistakes. They're all ones we've talked about. You might need to fix some quote marks or make a new variable or two. Don't delete any lines of code, though.

Your hints in the above challenge description were: quote marks, make a new variable, and dont delete lines of code.

print("Hello")
print(name) #print a variable that doesnt exist?? Make it exist ;)

print("Let's do some math!")
print(5 + "a") # Is it possible to add Integer of 5 to a String of "a"?? Or how can we make this one data type?

print("Thanks for playing along!') # Hiding in plain sight, also causing syntax highlighting for comments to break here.