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 trialJulian Osterwalder
1,134 PointsThis doesnt work for me at all...can't form a variable even though I followed same steps as in video. any input help?
Forming variable?? name = input("What's your name?")
1 Answer
Ken Alger
Treehouse TeacherJulian;
You are almost there, one slight change in your code. Let's review what the problem is.
Task 1 of this Challenge asks us to:
Create a variable named name with your name in it.
In Python you state the name of the variable, in this case it is name
, an equal sign, stating that the variable name is equal to something, and then what it is equal to. In this case it is equal to a string with your name in it, so that would require quotes, correct?
So the Python code would look like (comments are not necessary for the Challenge):
# Course: Python Basics
# Module: Ins & Outs
# Challenge: Ins & Outs
# Task: 1 of 3
name = "Julian"
Does that clear anything up?
Happy coding,
Ken