converter python to c 2b 2b code

Solutions on MaxInterview for converter python to c 2b 2b code by the best coders in the world

showing results for - "converter python to c 2b 2b code"
Keri
07 Mar 2017
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  
Katy
30 Aug 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)
similar questions
queries leading to this page
converter python to c 2b 2b code