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 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
231,236 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.