def mean(nums):
    """
    Gets mean value of a list of numbers
    :param nums: contains numbers to be averaged
    :type nums: list
    :return: average of nums
    :rtype: float or int
    """
    counter = 0
    for i in nums:
        counter += i
    return counter / len(nums)