I just started learning Python and want to create a simple script that will read integer numbers from user input and print their sum.
The code that I wrote is
script that will read integer numbers from user input and print their sum.
try this :
inflow = list(map(int, input().split(" "))) result = 0 for i in inflow: result += i print(result)