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 Python Basics (2015) Python for Beginners Correct errors

How do I get past this exercise if I do not know the right corrections?

I'm stuck! I'm not sure which corrections I need to make, so that means I am stuck on this step with no way to find out what the right corrections should be and no way to move to the next step.


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

print("Thanks for playing along!")

2 Answers

billy mercier
billy mercier
6,259 Points

you can't add an int with a string so turn 5 into a string... also name is not a variable so turn it into a string as well.

Thanks, I was able to make the right corrections. So it seems (with these exercises) that if you are unable to provide the expected corrections or type in the expected code then you are STUCK on that particular exercise and unable to A) find out what the correct lines of code should be and B) unable to progress to the next step. There should be a "show me the correct answers" option so that when we get stuck, we can get the correct answer and move to the next step.

Hey Raymond! Many people share your frustration that there is no 'see answer' button. This was intentionally not included tho, lots of other people have asked for it, you can read this thread for a simple answer.

Hope this helps!