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 trialDavid Ryan
Courses Plus Student 14,981 PointsCant seem to find out task 3 of python basics
https://teamtreehouse.com/library/python-basics/ins-outs/ins-outs
Does anyone know what I am doing wrong?
name = "David"
treehouse = 'Tree' + 'house'
emailgreeting = treehouse 'loves' name
1 Answer
Travis Bailey
13,675 PointsTry using the str.format() method that was used in the previous video. Here's an example.
grade = 95
student = "Chris"
result = "{} got a {} on their test.".format(student, grade)
David Ryan
Courses Plus Student 14,981 PointsDavid Ryan
Courses Plus Student 14,981 PointsThat worked! Thanks