Python Python Basics (2015) Python Data Types String Formatting

Lost on this one.

Just drew a blank

strings.py
name = "David"
.format("David")

1 Answer

The challenge asks you to use .format to put the name variable into the string "Treehouse loves {}". You currently have your .format attached to nothing. You also told it to

.format("David")

you need to

.format(name)

So, your code needs to have the string "Treehouse loves {}" formatted with name. You also need to assign the formatted string the name subject. Does that make sense? Hope this helps. :)