Python Python Basics (2015) Python Data Types String Formatting

Alaa Kassab
Alaa Kassab
415 Points

how to answer this question with {} and .format () ?

task 2.2 I dont know how properly to use these placeholders

strings.py
name = "Alaa Kassab"
greeting = " Hello.format(name)"
greeting
subject = "Treehouse loves {}"
greeting.fomat(name)

2 Answers

Pedro Cabral
Pedro Cabral
19,561 Points

You mistyped format and also you want to format the subject not the greeting in one line (call the method after ending quote).

Alaa Kassab
Alaa Kassab
415 Points

Thanks a lot Pedro, I could complete it now.