Question: Given 12345, write python code to find out all possible sums that result from inserting + between successive digits. For example 1234+5 = 1239. Print

Given 12345, write python code to find out all possible sums that result from inserting + between successive digits. For example 1234+5 = 1239. Print out the list of all 15 possibilities and the results. [HINT: the function eval() can be used to evaluate any arithmetic expression as a string. For example eval(1234 + 5) = 1239]

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!