more range and fore examples
This commit is contained in:
parent
8ebe534984
commit
135cf9ae63
2 changed files with 6 additions and 0 deletions
3
range.for.4.py
Normal file
3
range.for.4.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
for i in range(1, 10, 2):
|
||||
print(i, end=' ')
|
||||
print()
|
3
range.for.5.py
Normal file
3
range.for.5.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
for i in range(10, 0, -2):
|
||||
print(i, end=' ')
|
||||
print()
|
Loading…
Reference in a new issue