Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import string
- choice = int(input("How many symbols?"))
- res = []
- if choice % 2 != 0:
- print ('Please type even number')
- else:
- for i in range (int(choice/2)):
- a = random.choice(string.ascii_letters)
- b = random.randint(0,9)
- passw = a + str(b)
- res += passw
- pasword = ''.join(res)
- print (pasword)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement