Remove all occurrences of a value from list in place.
Implement this function:
def remove_all_occurrences(l: list, val) -> None:
Write the function only — the arguments are read for you and the return value is printed automatically.
This function changes its argument in place and returns nothing; the updated l is what gets printed.
Arguments arrive as one Python literal per line, in this order: l, val.
Input
[1, 2, 3, 2, 4, 2]
2
Output
[1, 3, 4]