Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
166 B
4
Indexable
file = open("numbers.txt", "r")
licznik = 0
suma = 0

for number in file:
    number = number.strip()
    suma = suma + int(number)
    licznik+=1
print(suma/licznik)