Python Python Basics (2015) Python Data Types String Formatting

Mindaugas Mindaugas
PRO
Mindaugas Mindaugas
Pro Student 483 Points

Oops! It looks like Task 1 is no longer passing.

Hi, I get error message "Oops! It looks like Task 1 is no longer passing." I try to do task one more time from the task 1 but I get the same error message.

strings.py
name = "Charlie" subject = "Treehouse loves {}".format(name)
#name = 'Minde'
#subject = 'Treehouse loves {}'
#subject.format(name)

1 Answer

Jennifer Nordell
MOD
Jennifer Nordell
Treehouse Moderator

Hi there! You have a syntax error which is resulting in the "Task 1 is no longer passing" message. At this point, your code can no longer be compiled/interpreted.

Those two variables need to be declared and set on separate lines. When I move the code for step 2 down to its own line, your code passes.

Hope this helps! :sparkles: