Simplify and optimize the following Python code for computing the mean of a list of numbers.
def mean(numbers):
    total = 0
    for n in numbers:
        total = total + n
    return total / len(numbers)
def mean(numbers):
    return sum(numbers) / len(numbers)