Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

age.py

I don't know where i am Wrong

age.py
age = input('What is your age?')

3 Answers

You forgot to put an extra space after your message.

The code challenge asked you to put an extra space after the message but in the string.

This is because if you run this code right now, the user is prompted like this with no extra space between their input and the computer message:

What's your age?30

This means you have to explicitly add a space in the string. If you run this code...

age = input("What's your age? ")

As you see, there's an extra space after the ?

It will have an extra space before the user input, as expected:

What's your age? 30

I hope you understand. ~Alex

Ohhh!! Yes, Thank you Very much, Alex!!!!!

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