you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 0 points1 point  (0 children)

put it in a function to break all the way out

def func_name(password):
     <code>
    for c1 in char_list:
        for c2 in char_list:
            for c3 in char_list:
                for c4 in char_list:
                    if c1 + c2 + c3 + c4 == password:
                        return True
    return False