Jan-19-2019, 03:31 PM
Why does
>> for n in range(1,5)
give 4 iterations?
>> for n in range(0,5)
give 4 iterations?
>> for n in tange(1,6)
give 5 iterations?
Surely this makes little sense. Do I need to set a base number somewhere like you used to have to in Basic many years ago?
Thanks.
>> for n in range(1,5)
give 4 iterations?
>> for n in range(0,5)
give 4 iterations?
>> for n in tange(1,6)
give 5 iterations?
Surely this makes little sense. Do I need to set a base number somewhere like you used to have to in Basic many years ago?
Thanks.