Check out example codes for "how to make the inputs become a sum python". It will help you in understanding the concepts better.

Code Example 1

>>> 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

Learn ReactJs, React Native from akashmittal.com