Return list of common elements (unique) between two lists. Return the common elements in the order they appear in the first list.
Implement this function:
def list_intersection(l1: list, l2: list) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: l1, l2.
Input
[1, 2, 3, 4]
[3, 4, 5, 6]
Output
[3, 4]