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()

input command

this is a simple command to define 'age' with an input command, but i can't seem to figure out whats wrong?

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

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,627 Points

Hi Sabry,

You code is correct in syntax. However, the challenges are very picky and the instructions need to be followed exactly or the code checker gets confused, and you will get a Bummer even if the code is functional.

Here the instructions say: "You might need to add a space in there, though."
But you added 2 spaces. Just delete one of the spaces and the code passes.

Nice Job! :) :dizzy:

gotcha. thank you so much