#!/usr/bin/python3 """ Read numbers until end of input (or a non-number) is reached Then print the sum of the numbers. """ import sys sum = 0 for line in stdin: sum += int(line) print(f"Sum of the numbers is {sum}")