Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to make the inputs become a sum python

>>> print('The result is: {}'.format(sum(map(int, raw_input('Enter numbers: ').split(',')))))
Enter numbers: 5,6,7,8,9,10
The result is: 45
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inputs #sum #python
ADD COMMENT
Topic
Name
8+5 =