#try to avoid input function a = (11,22,33,44,55,66,1,2,4,8,16,32) t = [] for i in a: n = bin(i) ##converts to binary t.append(n[2:]) ## removes "0b" from the binary form print(tuple(t)) ## converts to tuple
Click the run button. Try to avoid input() function.