UNI_Python/ueb_01/aufgabe_03.py
2023-11-10 14:21:06 +01:00

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)