Is there a way you can modify my code so that it prints the output of this code into a .txt document? Can you show me what the new code will look like. Thank you in advance
This code outputs every combination that can be made with those characters. The combination is only 3 characters long max.
import itertools res = itertools.product('abcdefghijklmnopqrstuvwxyz1234567890 ',repeat = 3) # 3 is the length of your result. for i in res: print ''.join(i)