def main():
    file_variable = open('numbers.txt', 'r')
    total = 0
    line_number = 0
    x = file_variable.readline()
    while x != '':
        x = int(x)
        total += x
        line_number += 1
        x = file_variable.readline()

    print("Average is:", total/line_number)


main()

103a2b02386b6b7cb07bd2c799274203e8063c6f
<mask token>

def main():
    file_variable = open('numbers.txt', 'r')
    total = 0
    line_number = 0
    x = file_variable.readline()
    while x != '':
        x = int(x)
        total += x
        line_number += 1
        x = file_variable.readline()
    print('Average is:', total / line_number)


<mask token>

def main():
    file_variable = open('numbers.txt', 'r')
    total = 0
    line_number = 0
    x = file_variable.readline()
    while x != '':
        x = int(x)
        total += x
        line_number += 1
        x = file_variable.readline()
    print('Average is:', total / line_number)


main()

def main():
    file_variable = open('numbers.txt', 'r')
    total = 0
    line_number = 0
    x = file_variable.readline()
    while x != '':
        x = int(x)
        total += x
        line_number += 1
        x = file_variable.readline()

    print("Average is:", total/line_number)


main()
