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 trialPaul Feric
Courses Plus Student 724 Pointssummary help
i need help for the third step of the day and age thing and i did the first 2 questions correctly but the third is asking me to make the variable summary and asks me to do something with the age thing and i cant seem to do it plz help
age = 16
days = 5824
summary = "I am {5824} days old!".
2 Answers
jamescool
44,592 PointsHi Paul. Did you learn anything about concatenation or string interpolation in the videos? There are a few ways to carry this out, actually. Concatenation would involve using the "+" operator to join together strings and the value of the variable:
summary = "I am " + days + "old!"
Interpolation would involve something slightly different. If it's expecting you to utilize interpolation (and not concatenation) you can find the answer pretty easily online. :)
Also, be careful about stray periods in your code!
jamescool
44,592 PointsIt's because days is a variable, while the other parts are strings. If the word days was also within quotes, the interpreter would not be able to tell that it should display its value.
If task one is not passing, back up and re-do the quiz. This might solve the problem you're experiencing.
Paul Feric
Courses Plus Student 724 Pointsim so sorry to keep bothering you but i backed it up many times and i tried doing days = 16*52*7 instead of what it equals to and i did the summary thing and it keeps telling me task one isnt passing and when i go back to task when it says great and says move one im so confused.
Paul Feric
Courses Plus Student 724 PointsPaul Feric
Courses Plus Student 724 Pointsi did learn concatenation. im just confused on why you dont put quotes over days and you do on i am and old
Paul Feric
Courses Plus Student 724 PointsPaul Feric
Courses Plus Student 724 Pointsso i did the summary thing you told me to do and its telling me that task 1 is not passing