tablica1=[15,15,18,98,1,2,3,4,5,9]tablica2=[1,2,3,4,5,6,7,8,9,10] tab=[m for m ,n in zip(tablica1,tablica2) if n!=m]print(tab)
Standard input is empty
[15, 15, 18, 98, 1, 2, 3, 4, 5, 9]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!