python symbols used in passowords code example
Example: password generator python
#This is giving you a password with 8 strings and 4 numbers:
import random
i=0
list=[]
while i < 12:
while i < 8:
list.append(random.choice(string.ascii_letters))
i+=1
while i < 12:
list.append(random.randint(0, 9))
i+=1
list=' '.join([str(elem) for elem in list])
print("Your new password: ", list.replace(" ", ""))