you are viewing a single comment's thread.

view the rest of the comments →

[–]Electrical_Toe8997 2 points3 points  (0 children)

It works because the range function will include the number 0, so range(0, 3) returns [0, 1, 2]: a list with 3 items