Return dict of element frequencies in a tuple.
Implement this function:
def tuple_element_frequency(t: tuple) -> dict:
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: t.
Input
(1, 2, 2, 3, 3, 3)
Output
{1: 1, 2: 2, 3: 3}