This commit is contained in:
2025-06-30 15:50:20 +02:00
commit 620db6d552
9 changed files with 28874 additions and 0 deletions

18
it_test.py Normal file
View File

@@ -0,0 +1,18 @@
def iterator():
i = 1
while True:
yield i
i = i * 2
def print_binary(num):
print(f"Bin: {num:032b}")
run = 1
gen = iterator()
while run != 0:
nextv = next(gen)
print(f"Int: {nextv}")
print_binary(nextv)
run = nextv