travail d'un we (j'en ai big marre)

This commit is contained in:
2025-11-23 23:39:43 +01:00
parent 1ff888cf34
commit 4c486199ed
69 changed files with 208 additions and 111 deletions

11
final-loop/src/permute.py Normal file
View File

@@ -0,0 +1,11 @@
def permute(bits, step=7):
for i in range(len(bits)):
yield bits[(i * step) % len(bits)]
if __name__ == "__main__":
bits = "111000111100101111101110111001011100110000100100011100110011"
print("".join(permute(bits)))
# 111100110001110101101000011110010110101100111111101000111000