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 trialChris Hansen
3,507 PointsHeya! I need your help. The script below has some errors in it. I know you might still be a little uncomfortable with c
It's such a simple question, but I cant get passed one tiny minuscule part.
I am supposed to fix the following code:
print("Hello") print(name)
print("Let's do some math!")
print(5 = 'a') print("Thanks for playing")
i knnow the name variable is undefined so created a variable : name = "Chris"
but the video goes over the type or operand error , but doesn't actually go over the solution as to how to add a str to int lol. Thanks ahead of time.
print("Hello")
name = "Chris"
print(name)
print("Let's do some math!")
print(5 + str"a")
print("Thanks for playing along!')
1 Answer
Halit KOÇHAN
480 PointsTrue code is
print("Hello") print("name") print("Lets.....") print(5+5) print("blabla")
You do not need to make any define such as name or string a, just try to print to texts on the screen.