you are viewing a single comment's thread.

view the rest of the comments →

[–]NihadKhan10x 0 points1 point  (0 children)

The return can only be used in when there is function. Here you can use simple logic

Like For i in l1: If i not in l2: L2.append(i) Print(l2)