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

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,860 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