I have a promlem with cycle ‘for’


#1

https://www.jdoodle.com/python3-programming-online#&togetherjs=TLt7U742pM

I have a promlem with cycle ‘for’
it doesn’t even print “ppp”
print("Hello World hamming ")

#ключевой список(контроль)
u=[]
for i in range(1,33):
    u.append(bin(i))
for j in u:
    print(j)

#input
k=[]
k=input("enter code ")


print(k)
print(len(k))

error_sindrom=[]
n=len(k)
#nk=int(input("enter nk "))
nk=4
u=[]
s=[]
for i in range(nk):
    s.append(k[2**i-1])
print(s)


eb=0
o=[]
o='0'
for i in range (nk):
    print(i)#
    sr=bin(2**i)
    print(sr)#
    for item in u:
        print(item)
        print(" ppp ")
        print(sr&item)
        if (sr&item)==sr:
            if j<=len(k):
                if k[item-1]=='1':
                    eb+=1
        print('new cycle j')
        
    if (eb%2)!=0:
        o='1'
    eb=0
    
    error_sindrom.append(o)
    print(o)#
    o='0'
    print('end of cycle i')