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) Ins & Outs Ins & Outs

Marcos Philipson
Marcos Philipson
7,725 Points

Python Basics / ins-outs / Challenge Task 3 statement

The statement asks to combine the variables name, treehouse and the string "loves" with spaces between them, but doesn't specify an order, so I think any order should be valid.

name.py
name = "FF"
treehouse = "Tree" + "house"
email_greeting = "{} loves {}".format(name, treehouse)

1 Answer

isn't it wise to just follow the order in which the statement is given i.e treehouse, loves name. remember the challenge is hard coded to accept the answer in a specific format therefore your code will give you an error.

Marcos Philipson
Marcos Philipson
7,725 Points

How is it coded? It was such a silly mistake that made me loose a couple of annoying minutes...