lst = [1,1,4,5,1,4] print(lst) LST = [1,1,4,5,1,4] SSS= [] for i in range(10): for j in range(len(LST)): LST[j]=LST[j]-1 if LST[j] == 0: SSS.append(lst[j]) print(SSS)
To embed this project on your website, copy the following code and paste it into your website's HTML: