more while example
This commit is contained in:
parent
db1e78d12b
commit
9894e496c2
6
while-4.py
Normal file
6
while-4.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
a = [4, 3, 12, 56, 33, 78, 21, 78, 9, 45]
|
||||
i = 0
|
||||
while i < len(a):
|
||||
if a[i] % 2 == 0:
|
||||
print(a[i], end=' ')
|
||||
i += 1
|
Loading…
Reference in New Issue
Block a user