Forum Discussion
Sangeeta Mudnal
Aug 26, 2016Former Employee
Welcome to the Excel Community
The Excel Community is a place we've built for all of you. You can learn more about how to do something with Excel, discuss your work, and connect with experts that build and use the product. With ov...
jhandros
Feb 22, 2024Copper Contributor
Hello all,
whith 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)
whith 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)
- SergeiBaklanFeb 22, 2024Diamond Contributor
It looks like sandbox timeout limit is about 30 sec. Didn't see the documentation, but
import time time.sleep(29) '*end*'
works, adding couple of seconds gives #TIMEOUT! error.
For future please ask your questions by "Start new discussion" button at https://techcommunity.microsoft.com/t5/excel/bd-p/ExcelGeneral . Your question in this thread most probably seen only few people who replied in past in thread, thus have notification.
- jhandrosFeb 22, 2024Copper Contributor