When I execute this code, I get an error.
print("Type integer!");
total = 0;
count = 0;
while True:
line = input("integer: ");
if line:
try:
number = int(line);
except ValueError as err:
print(err);
continue;
total += number;
count += 1;
else:
break;
if count:
print("count=", count, "total =", total, "mean=", count/total);


Sign In
Create Account


Back to top









