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
176,365 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.