Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def password_generator():
- number_one = random.choice(['1','2','3','4','5','6','7','8','9','0'])
- number_two = random.choice(['1','2','3','4','5','6','7','8','9','0'])
- number_three = random.choice(['1','2','3','4','5','6','7','8','9','0'])
- number_four = random.choice(['1','2','3','4','5','6','7','8','9','0'])
- number_five = random.choice(['1','2','3','4','5','6','7','8','9','0'])
- symbol = random.choice(["!", "@", "#", "$", "%", "^", "&", "*", "(", ")"])
- capitol_letter = random.choice(["A", "B", "C", "D", "E", "F", "G"])
- undercase_letter_one = random.choice(["a", "b", "c", "d", "e", "f", "g"])
- undercase_letter_two = random.choice(["a", "b", "c", "d", "e", "f", "g"])
- three_numbers = number_one + number_two + number_three
- two_numbers = number_four + number_five
- two_undercase_letters = undercase_letter_one + undercase_letter_two
- two_numbers = number_four + number_five
- done_password = symbol + three_numbers + capitol_letter + two_undercase_letters + two_numbers
- print "Your new password is %s" % done_password
- password_generator()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement