You are asked to write a Python program that computes the mean of a list of numbers.
[1, 3, 5, 8, 10]
def mean(nums):
    total = 0
    for num in nums:
        total += num
    return total / len(nums)

mean([1, 3, 5, 8, 10])  # 6.0