Hi,
Please clarify below code:
for x in range(0, 3):
Does above "for" statement stop when x = 2 or when x = 3 ? Thanks!
Jesse
range returns a list going from lower_number to upper_number - 1, not taking into account the third parameter; in this case, the loop iterate through the numbers 0, 1 and 2.
range
lower_number
upper_number - 1
0, 1 and 2
Ok, that clears our confusion, thanks!