So I'm writing this code for my class and I encountered one error that with it which im not sure why it is returning an error. 
This is the section of code that returns this error:

```
    numValues = int(input("Input number of inputs (between 1 and 15): "))
    newList = []

    def input_nums():
        inputs = float(input("Enter a float value: "))
        newList.append(inputs)
        return newList

    while numValues:
        input_nums()
        numValues -= 1

    def in_order():
        for i in newList:
            print(i)

    def rev_order():
        for j in newList[::-1]:
            print(j)

    def abo_bel_equ():
        avg = sum(newList) / numValues ## This line gives the error ##
        print("The average is: ", avg)
        for x in range(numValues):
            above_avg = below_avg = equal_avg = 0
            if newList[x] > avg:
                above_avg += 1
            if newList[x] < avg:
                below_avg += 1
            if newList[x] == avg:
                equal_avg += 1

    print("The values of the list in order are: ")
    in_order()
    print("The values of the list in reverse order are: ")
    rev_order()
    print(abo_bel_equ())

```

The 'numValues' variable should be whatever integer the user entered, but instead returns 0.

Why is this function saying the numValues variable is zero when it should be the users input integer?