tablica1=[1,2,3,4,5,10,11,18,19,20]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
[10, 11, 18, 19, 20]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!