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

How does this not work

I think this code should be correct but it says the first line is not passing.

days_alive.py
age = 48
days= 17472
summery = ("I am "{}" days old".format(days))

2 Answers

Daniel Johnstone
Daniel Johnstone
8,420 Points

You only use the curly braces when they're inside a string. eg. print("I am {} days old".format(days)).

Thanks so much Daniel

You are using the double quotes twice. In this case only needs use in the begging and the final.

summery = ("I am {} days old".format(days))