Here is my program I want to find the weather it is a sum string or not based on the following condition 1)the string length must be >3 example:"12358" --- 1+2=3,2+3=5,3+5=8 I tried this program I am getting the index error please help me.Thank you in adavnce.
Given below is my code:
y="12358"
for i in range(len(y)-1):
if y[i]+y[i+1]==y[i+2]:
print "sum stringgg"