def sum_array(lst: list):
    """Returns the sum of the numbers in the list.

    Example:
        >>> list(range(0,10))\n
        [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
        >>> myrange = list(range(0,10))\n
        >>> sum_array(myrange)\n
        45
        >>> sum(list(range(0,10)))\n
        45
    """
    return sum(lst)