Open mvirts opened 2 years ago
Iterable integers actually make sense if you are comfortable with throwing away some readability
for i in 100: print(i) this would be equivalent to
for i in 100: print(i)
for i in range(100): print(i) Maybe introduce an alternate keyword under or below like
for i in range(100): print(i)
under
below
for i under 100: print(i)
Negative numbers could slightly change the behavior to
for i in range(0,-100,-1)
Iterable integers actually make sense if you are comfortable with throwing away some readability
for i in 100: print(i)
this would be equivalent tofor i in range(100): print(i)
Maybe introduce an alternate keywordunder
orbelow
likefor i under 100: print(i)
Negative numbers could slightly change the behavior to
for i in range(0,-100,-1)