# A simple script for generating a list of very easily guessed passwords, to demonstrate recursive functions # You should never use any of these as your password because some l33t hax0r will get into your stuff def print_remainder(remaining_list, so_far=''): if len(remaining_list) == 0: print(so_far) else: for i in remaining_list[0]: print_remainder(remaining_list[1:],so_far+i) character_list = [['p','P'],['a','A'],['s','S'],['s','S'],['w','W'],['o','O','0'],['r','R'],['d','D']] print_remainder(character_list)