added
This commit is contained in:
1 parent
9252eb99e3
commit
ab28089063
5 files changed
+140
No files matched your search
@@ -0,0 +1,9 @@
|
||||
def odd(limit):
|
||||
current = 1
|
||||
while current <= limit:
|
||||
yield current
|
||||
current += 2
|
||||
|
||||
|
||||
# Testen
|
||||
print(list(odd(10))) # Ausgabe: [1, 3, 5, 7, 9]
|
||||
Reference in new issue
Block a user