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 trial

Python Python Basics (2015) Logic in Python Use input()

need help with this

age = input ("what is your age?")

age.py
age = input ("what is your age?")

1 Answer

Tobias Helmrich
Tobias Helmrich
31,603 Points

Hey there Daniel,

the reason why you're not passing this challenge is because you need a trailing space. So just add a space after the question mark and it should work fine! I also recommend writing the exact same string that the challenge wants you to write, so you should write the first letter capitalized in this case.

Like so:

age = input("What is your age? ")

I hope that helps! :)