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 (2015) Python Data Types String Formatting

Paul Heneghan
Paul Heneghan
14,380 Points

Help! This string formatting pg doesn't show exercise code I need to finish module on both Win and iPad app thx!

There's also a report of a frozen video embedded in the chart/form that appears in place of exercise code. Thank you for your help!

strings.py

3 Answers

First task you just need to declare a string variable name and assign your name to it. Task 2 you need to create a new variable "subject" and assign the string that is provided then add the curly braces and the add .format() to the end of it with variable name inside.

Paul Heneghan
Paul Heneghan
14,380 Points

Thanks for the quick assist, Jeremy, sorry for the sloooow response due to the holiday weekend. I think part of the problem was in the iPad app, I've switched over to a laptop and browser and everything appears to work as it should now. I wasn't getting anything back when I entered the name variable correctly, no "Check Work" or "Move on to Next Task." I tried several times to go back to the beginning of the module and go thru the videos in hopes of refreshing the whole process, but still didn't work. Biggest lesson learned for me? Stay at it, don't lose the thread by not logging in every day. Thanks again!

Task 2:

subject = "Treehouse loves {}".format(name)

Okay, I'm glad you got it figured out :)