z_magie64.py

Created by cent20

Created on April 19, 2021

673 Bytes

Beta avant obfuscation … Non finalisé.


# BETA avant Offuscation
# DEV encours

print("Choisis un nombre \n entre 0 et 63")

print("Des listes vont s'afficher \nsi ton nombre est \ndans la liste répond OUI \n sinon répond NON")
OUI = ["OUI", "oui", "Oui", "O","o", "1", 1]
input()

listes = []

for i in range(0,6):
    listes.append([])
    m=n=2**i
    while n<64:
        listes[i].append(n)
        n +=1*((n+1)%m!=0)+(m+1)*((n+1)%m==0)

s = 0

for i in range(6):
    for j in range(len(listes[i])):
        print("0"*(listes[i][j]<10)+str(listes[i][j])," ",end="\n"*((j+1)%7==0))
    print("")
    reponse = input()
    if reponse in OUI:
        s +=2**i
print("réponse =",s)