Question: Use the input function to consume a plus-separated string of numbers from the user (e.g., 4+2+3 ). Add up all these numbers and print their

 Use the input function to consume a plus-separated string of numbers

Use the input function to consume a plus-separated string of numbers from the user (e.g., 4+2+3 ). Add up all these numbers and print their sum (9, in the case shown before) Note: Your code will be tested against multiple possible inputs. It is not enough to get the right output for your own cases, you will need to be able to handle any non-empty string of plus-separated string of numbers. You can assume that the user will only input plus-separated strings of numbers. Note: The user will only be typing in whole numbers, no decimals

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!