Files
matrixmania/ungerade-zahlen.py
2026-11-05 13:33:46 +01:00

9 lines
150 B
Python

def odd(limit):
current = 1
while current <= limit:
yield current
current += 2
# Testen
print(list(odd(10))) # Ausgabe: [1, 3, 5, 7, 9]