def avg(numbers: list) -> float:
    """Calculate the average of a list of numbers

    numbers is a list of numbers
    Returns a float representing the average"""
    if len(numbers) != 0:  # Check if the list is empty
        count = 0
        for number in numbers:
            count += number
        return count / len(numbers)
    return 0