It was mentioned earlier that for range(n) it would give the values n to n-1 then how come in the above code :
___
for i in range(5):
print('hello!')
___
it printed hello 5 times when it should have been printed 4 times ?
It was mentioned earlier that for range(n) it would give the values n to n-1 then how come in the above code :
___
for i in range(5):
print('hello!')
___
it printed hello 5 times when it should have been printed 4 times ?