Return list of elements that appear more than once. Example: [1,2,3,2,4,3] => [2,3] Return the duplicates in the order they first appear in the list.
Implement this function:
def find_duplicates(lst: 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: lst.
Input
[1, 2, 3, 2, 4, 3]
Output
[2, 3]