23 lines
326 B
Python
23 lines
326 B
Python
def odd(x=500):
|
|
for i in range(x):
|
|
if i%2 == 1:
|
|
print(i)
|
|
|
|
|
|
def even(x=500):
|
|
for i in range(x):
|
|
if i%2 == 0:
|
|
print(i)
|
|
|
|
|
|
def indicator(x=500):
|
|
for i in range(x):
|
|
if i%2 == 0:
|
|
print(1)
|
|
else:
|
|
print(-1)
|
|
|
|
|
|
# odd(10)
|
|
# even(10)
|
|
indicator(10) |