You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
261 B
11 lines
261 B
# test assigning to iterator within the loop
|
|
for i in range(2):
|
|
print(i)
|
|
i = 2
|
|
|
|
# test assigning to range parameter within the loop
|
|
# (since we optimise for loops, this needs checking, currently it fails)
|
|
n = 2
|
|
for i in range(n):
|
|
print(i)
|
|
n = 0
|
|
|