Return the most frequent element in a list.
Implement this function:
def most_frequent(lst: 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, 2, 3, 2]
Output
2