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 Lists

Dongyun Cho
Dongyun Cho
2,256 Points

"You don't have to do the commas, but that's convention"

around 6:46, teacher says "You don't have to do the commas, but that's convention". what does it mean? I need to use the commas to seperate things in the list! did this teacher make a mistake?

2 Answers

Steven Parker
Steven Parker
208,481 Points

It's a mistake which he immediately corrects.

The complete transcript of that section is: "You don't have to do the commas, but that's convention. Or the spaces rather. You have to do the commas."

So what he really meant is that you don't have to use spaces between a comma and the following item, but it is conventional to do so.

Dongyun Cho
Dongyun Cho
2,256 Points

Oh I got it. thank you so much.