Even though the syntax all seems correct I'm still thrown an output error, any reason why it throws this on the output? (please ignore my bad indentation).
import zipfile
myZip = zipfile.ZipFile("/mydile.zip")
count = 0
for x in range(0,1005310):
password = count
count += 1
try:
myZip.extractall(pwd = password)
print(password)
except Exception as e:
print(e)
print "Sorry, password not found."