#try to avoid input function tup1 = (0,88,33,44,0,78,5,0,24,12) tup2 = (0,54,76,45,34,223,112,23,55,22) new = [] for i in range(len(tup1)): new.append(tup1[i] or tup2[i]) print(tuple(new))
Click the run button. Try to avoid input() function.