For loop automatic increment

This is because range is a built-in function coded in such a way that will run till n-1,
say for i in range(0,10): print(i) so it will start till 0 and goes till 9

Hi aryandeep779,

In Python, the range() function generates numbers in a sequence, starting from the first parameter and ending before the second parameter. For range(0, 10), it generates numbers from 0 to 9. So, a for loop with range(0, 10) will iterate 10 times, but not include 10 in the sequence. If you want to include 10, use range(0, 11).