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 (Retired) Things That Count Things That Count

why doesn't this work: age = 32

I don' get it

days_alive.py

2 Answers

The challenge states: Create a variable named age that contains your age.

Be sure you do not have spaces BEFORE you define and set your variable age to 32

age = 32

should pass as long as you have no spaces before the declaration of age.

Thanks Chris My code was fine all along, the website was playing up and could not run it due to connection, I miss took this for code error

Ah yes, that happens to me as well. My internet is really terrible where I live at the moment. But also I have found that If you attempt to open the same challenge by accident in another tab it can make your current challenge error out.