I have input string written in this form:
S = 2222+576666
And I need with help for-loop and “+” sign to extract digits before and after “+”
for position in range(0,len(S)):
# Missing part of code I need help with to get desired solution
number1 = 2222
number2 = 576666
I am not allowed to use any import or any fancy function like split() or raw_input().
How about this: