Untitled
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)
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)