I am using itertools to generate combinations, but I would like to control the output and be able to ask for the next entry:
from itertools import permutations
def getPass():
chars = '4$5%6^7&'
passd = ''
for comb in permutations(chars):
passd = ''.join(comb)
return passd
while(True):
print getPass()
But am unable to find any relevant documentation. How do I do this?