can i convert python code to c 2b 2b 3f

Solutions on MaxInterview for can i convert python code to c 2b 2b 3f by the best coders in the world

showing results for - "can i convert python code to c 2b 2b 3f"
Dolly
19 Jan 2016
1list=[200500,999508,10003,204090,9876987]
2index_list=[]
3for i in list:
4  n=0
5  i=str(i)
6  
7  for j in range(len(i)-3):
8    if i[j]==str(0):
9      if i[j]==i[j+1]==i[j+2]==i[j+3]:
10        n+=4
11      elif i[j]==i[j+1]==i[j+2]:
12         n+=3
13      elif i[j]==i[j+1]:
14        n+=2
15  index_list.append(n)
16  
similar questions
queries leading to this page
can i convert python code to c 2b 2b 3f