Please solve this code problem
arr = list(input("enter your 4 digits binary code")) a=int(arr[0]) b=int(arr[1]) c=int(arr[2]) d=int(arr[3]) for i in range(len(arr)): if (int(arr[i])==0 or int(arr[i])==1): if (a,b,c,d==0,0,0,0): print("0") elif(a,b,c,d==0,0,0,1): print("1") elif(a,b,c,d==0,0,1,0): print("2") elif(a,b,c,d==0,0,1,1): print("3") elif(a,b,c,d==0,1,0,0): print("4") elif(a,b,c,d==0,1,0,1): print("5") elif(a,b,c,d==0,1,1,0): print("6") elif(a,b,c,d==0,1,1,1): print("7") elif(a,b,c,d==1,0,0,0): print("8") elif(a,b,c,d==1,0,0,1): print("9") else: print("hi") break else: print("enter binary code") break