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

Salar Ahmed
Salar Ahmed
1,574 Points

Hello, im stuck with the last task in python. What am I supposed to correct? what specifically do you want me to do?

Hello, im stuck with the last task in python. What am I supposed to correct? what specifically do you want me to do?

1 Answer

According to the link provided in the challenge...

You have to remove the errors in anyway possible without deleting any line of code(replacement is allowed but there should be 5 print statements in the code)

print("Hello")
#print(name) is not defined so either you define name[name="Tom"] or make name a string like... 
print("name")

print("Let's do some math!")
#print(5 + "a") is wrong as you are trying to add an int and string type literals.
print("5" + "a")

#print("Thanks for playing along!') ending and starting tag must be same, 
#so either append a double quote.
#print("Thanks for playing along!' ")
#or replace single quote with double
print("Thanks for playing along!")