print('Hello world!')
J = [0]*6
print(J)

P = 0

for _ in range(0,64):
    if J[-(P+1)] == 0:
        J[-(P+1)] = 1
    else:
        if 0 not in J[-6:-1]:
            J[-6] = 0
            J[-5] = 0
            J[-4] = 0
            J[-3] = 0
            J[-2] = 0
            J[-1] = 0
        elif 0 not in J[-5:-1]:
            J[-6] = 1
            J[-5] = 0
            J[-4] = 0
            J[-3] = 0
            J[-2] = 0
            J[-1] = 0
        elif 0 not in J[-4:-1]:
            J[-5] = 1
            J[-4] = 0
            J[-3] = 0
            J[-2] = 0
            J[-1] = 0
        elif 0 not in J[-3:-1]:
            J[-4] = 1
            J[-3] = 0
            J[-2] = 0
            J[-1] = 0
        elif 0 not in J[-2:-1]:
            J[-3] = 1
            J[-2] = 0
            J[-1] = 0
        else:
            J[-2] = 1
            J[-1] = 0

    print(J,end=f":{_+1}\n")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: