file.py
= 0
total = 0
count
with open("data.txt") as f:
for line in f:
= int(line)
number += number
total += 1
count
print("Sum of all", count, "values is:", total)
if count > 0:
= total / count
mean print("The mean is", mean)