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 trialAnand Amirtharaj Arokiaswamy
115 Pointswhat is wrong variable assigning. name = "Anand"
name = Anand print name
var name = "Anand"
value = 4
print name
print value
2 Answers
Steven Parker
231,275 PointsHave you also been studying JavaScript?
I wondered that because there's no "var" in Python. So assigning name would simply be like this:
name = "Anand"
And that's all this task asks for (no values, no printing). However, for future use, in Python print is a function, so you would enclose what you are printing in parentheses (like: "print(name)
"). But never do anything in a challenge that the challenge doesn't ask for, it can cause your answer to not pass.
Anand Amirtharaj Arokiaswamy
115 PointsThanks