print("Type integers, each followed by Enter; or just Enter to finish")
total = 0
count = 0
inputs = []
while True:
line = input("integer:")
if line:
try:
number = int(line)
inputs += [number]
except ValueError as err:
print(err)
continue
total += number
count += 1
inputs.sort()
else:
break
if count:
print("nmbers:", inputs)
print("count=", count, "total=", total, "lowest=", inputs[0], "highest=", inputs[-1:][0], "mean=", total/count)