[Solved] Coding Bug in python [closed]


While Loop is running more than the length of range_pn.

Below line of code:

range_pn = list(range(start, stop + 1))
print(range_pn)

produces the output:

[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

And the length of the list is:

print(len(range_pn))

Output:
19

solved Coding Bug in python [closed]