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

Python Challenge Task confusion

I'm confused at this phrasing,

"create a variable named days that is your age multiplied by 52 (we'll pretend today is your birthday) and multiplied by 7."

Am I supposed to be doing 2 different equations here, or am I simply missing the obvious?

days_alive.py
age = (35 + 4)

days = (age) *52

1 Answer

Kelly von Borstel
Kelly von Borstel
28,880 Points

They want the calculations all in one line, like this:

age = 35
days = age * 52 * 7

Cheers. I'm kicking myself now that I see it. If it were a snake, it would have bitten me. :)