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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Susan Rodgers](https://secure.gravatar.com/avatar/5b20071e4b23434e3e9807497599a3d4?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Susan Rodgers
6,346 PointsI have a general Python question - why bother with 'format' when you can just concatenate text and variables.
... python3
name = "Susan" print ("My name is " + name) My name is Susan
print ("My name is {}".format (name)) My name is Susan ...
2 Answers
![Kiefer H](https://secure.gravatar.com/avatar/1b0c0cec9d5bd3d3d5902e585815f828?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Kiefer H
5,665 PointsI sometimes wonder why we use .format() at all when you just can f'{}'
Formatted strings just look better, and convey information a whole easier.
![Jeff Muday](https://uploads.teamtreehouse.com/production/profile-photos/5900142/micro_jeff_face.jpg)
Jeff Muday
Treehouse Moderator 28,718 PointsThat's a definitely fair question to ask.
You may run into a scenario where you have been asked to write a program that can run on different platforms (with the same code base). For example-- if you target only platforms that are running Python 3.6 and greater, then you can write f-strings -- earlier versions, unfortunately, aren't f-string aware.
As an aspirant-- often your first job might be maintenance of existing code. So you will definitely have to be familiar .format()
and %
operator as well as string concatenation.
Good luck with your Python journey!