- Takes a list of numbers as input
- Converts the strings to integers
- Adds the numbers together
- Outputs the result
print(sum([int(data) for data in input('Please enter some numbers ').split(' ')]))
print(sum([int(data) for data in input('Please enter some numbers ').split(' ')]))
|
|
|
Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!
0 members, 1 guests, 0 anonymous users