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 trialJack Cummins
17,417 PointsShould I use the commas to seperate my strings or the .format() function.
I was just wondering, because Craig taught us to do the same thing 2 ways.
Thanks, Jack
1 Answer
Steven Parker
231,275 PointsThe more you learn about programming, the more different ways you will be able to do the same thing. Usually, you'll pick a method based on a compromise of compact notation, execution efficiency, and ease of understanding for future maintainers. Sometimes you're lucky and can cover all three without compromise.