Skip to content

TypeScript code snippet – 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
See also  Check if a particular application is installed using Powershell

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.