Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Python Data Types String Formatting

Paul Heneghan
Paul Heneghan
14,337 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!


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,337 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 :)