For i in range (2 dint 10): why don't I start with 2?

the problem is shown in figure

clipboard.png
Why doesn"t n start at 2, start at the beginning, and doesn"t include the end value?

Mar.20,2021

because range (2jue 2) is empty


because n is greater than 2 in the second for loop


the first subcycle is range (2jue 2), and the


range () interval is left closed and right open. When you put nasty 2 into the second for loop, there is no value left to take. < However, I would like to say that the code
for i in range (): should be regarded as
for (true/false) {
-sharp only if the i in range () is true,.

Menu