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
Get step-by-step solutions from verified subject matter experts
