Return a list containing all items in 'L1' that are not in 'L2
(L1, L2)
| 7 | L.extend(unique_items) |
| 8 | |
| 9 | def unique(L1, L2): |
| 10 | """Return a list containing all items in 'L1' that are not in 'L2'""" |
| 11 | return [item for item in L1 if item not in L2] |
| 12 | |
| 13 | # Sample code demonstratiing use |
| 14 | if __name__ == "__main__": |