So, I got this error
    Traceback (most recent call last):
     File **, line 15, in <module>
        del a[del_line]
    IndexError: list assignment index out of range
I am trying to make a program that will generate password combinations, but delete them almost immediately while another program tests them, I just can't seem to get the right code... Here's my coding -
    from __future__ import print_function
    import itertools
    import sys
    from time import sleep 
    del_line = -1
    f1 = open("passfile.txt", "w")
    res = itertools.product("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", repeat=8)
    for i in res:
       print(''.join(i), file=f1)
       sleep(.5)
       del_line += 1
       with open("passfile.txt","r") as textobj:
           a = list(textobj)
       del a[del_line]
       with open("textfile.txt","w") as textobj:
            for n in a:
                textobj.write(n)
Oh, I'm running python 2.7.11 btw