+ 1
Why rang(2,6) doesn't contain 6 itself?
2 Antworten
+ 4
Because the range ([start], stop [, step]) function does not include the last range value, which in your case is the number 6. When you want to include the last range number use range(2, 6+1).
0
Thanks