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

Challenge task

Challenge Task 1 of 1

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.

My answer was:

age = input('What\'s your age?\n')

I also tried age = input('''What's your age? ''')

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

None of the above are working

It either says

Bummer! Add trailing spaces or Bumer! Your propmt is incorrecct

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

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

1 Answer

I am sorry guys. I just realized I was typing "What's your age?" instead of "What is your age?". Thank you for your time.