from typing import Reversible
from typing import Any


def last(it: Reversible[Any]) -> Any:
    """
    Get end of iterable object

    Args:
        it: Reversible(Iterable)) object

    Examples:
        >>> fpsm.last([1, 2, 3])
        3
        >>> fpsm.last('hello world')
        'd'
    """
    return next(iter(reversed(it)))