def get_file():
    file_name = input("Enter the name of the file: ")
    try:
        count = 0
        total = 0.0
        average = 0.0
        maximum = 0
        minimum = 0
        range1 = 0
        with open(file_name) as file:
            number = int(line)
            count = count + 1
            total = total+ num
            maximum = max(number)
            minimum = min(number)
            average = total/count
            range = maximum = minimum
            print('The name of the file: ', file_name)
            print('The sum of the numbers: ', total)
            print('The count of how many numbers are in the file: ', count)
            print('The average of the numbers: ', average)
            print('The maximum value: ', maximum)
            print('The minimum value: ', minimum)
            print('The range of the values (maximum - minimum): ', range)
    except:
        print("The file is not found.")
def main():
    get_file()
main()
That is my code, I keep getting the error that the file is not found. I have made sure that the text files that I am inputing into this code is in the same file and that I am spelling everything right. What is wrong
 
     
    