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

Randall Brewster
Randall Brewster
5,041 Points

could someone help me create a variable named age with my age in it?

I am having trouble with this challenge could some one help step me thru this?

days_alive.py
name = "age"
Adam Oliver
Adam Oliver
8,214 Points

The variable it's self needs to be called age - which will have your age in, not the word.

2 Answers

Gergő Bogdán
Gergő Bogdán
6,664 Points

Hi,

The code should be something like:

age = 30 #or what is your age
Taylor Laine
Taylor Laine
9,629 Points

Yeah you want to take a said word and store a number to that word. Like x = 11. So in math 1 + x = 12. In this case your variable would be age, and you want to put your age in that variable. So age = 21 or what ever your age is.