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 trialgalhardoo
19,272 PointsWhat is wrong below? :o
Simple one this time. Make a variable named age that is assigned to an input() call. Give your input() a prompt of "What is your age?". You might need to add a space in there, though.
"Bummer! Add in a trailing space."
age = input("What is your age?")
7 Answers
Grigorij Schleifer
10,365 PointsHi Alex,
just add a sspace between your question mark and end quotes :)
Grigorij
Priya Narayanan
1,101 Pointsage = input("What is your age? ")
Cristobal Ortiz-Ortiz
1,000 Pointsthis works i just had one little space more than you after the question mark this is killing me XD
SC3 Rocks
33,474 PointsI don't understand why, but this code didn't work for some reason: age = input("What's your age? ")
Alexander Schieving
3,800 PointsSame here. In the console it works not in age.py. Very frustating
Patric Daniel Pförtner
1,542 PointsHi Alex,
You are very close to the answer, here is how I did it:
age = input("What is your age? ")
# Don´t forget to place a freespace after the Questionmark.
Why are you learning Python? Maybe we have the same aims! I am learning it to bring my Start UP www.wolf-gate.com to the next level. Thank´s to Kenneth Love it´s easily possible :)
Sandeep Krishnan
9,730 Pointsreally stupid question
Priya Narayanan
1,101 PointsNow its working fine..Thank u Grigorij
Ben Johnson
6,005 PointsI agree....stupid question