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 trialIvana Čukman
914 Pointserrors.py
what's wrong with my code???
print("Hello")
name = Ivana
print(name)
print("Let/'s do some math!")
print(5 + 5)
print("Thanks for playing along!")
1 Answer
Name:GoogleSearch orJonathan Sum
5,039 Points#one problem need to be fixed
name = Ivana #This line of code is wrong
# varible name is equal to another varible Ivana.
#i know u want to set varible equal to a word lvana
#if so, u need to put the word into the " " sign
#therefore, the correct code is name = "Ivana"
name= "lvana" we call this "lavan" with " "sign is string because the whole word is fixed or being stringed together into one thing.
#one more thing, i know this one doesn't have problem
>>>print("Let/'s do some math!") #if u run this code,it will give u this in below
Let/'s do some math! #see there is a / sign between the word "let" and 's .
#u don't need the / sign between the word "let" and 's.
#good night
#correct code:
print("Hello")
name = "Ivana"
print(name)
print("Let/'s do some math!") #you can keep the / sign or remove it.
print(5 + 5)
print("Thanks for playing along!")
Fredrik Eilertsen
60 PointsFredrik Eilertsen
60 PointsYour name has to be a string.
name = "Ivana"