#TIMEOUT in Python on Excel
Alejandro Campos
5
Reputation points
Hello all, with this code in Python for Excel, gives #TIMEOUT Error. Any solution?. Thanks in advance
import hashlib
ip='cxdnnyjw'
ans=''
ans2='????????'
for i in range(10**8):
h=hashlib.md5((ip+str(i)).encode()).hexdigest()
if h.startswith('00000'):
pos=h[5]
ans=ans+pos
if pos in '01234567' and ans2[int(pos)]=='?':
ans2=ans2[:int(pos)]+h[6]+ans2[int(pos)+1:]
if ans2.find('?')==-1:
break
print('ans1:',ans[:8])
print('ans2:',ans2)