21 lines
417 B
Python
21 lines
417 B
Python
import random
|
|
import string
|
|
|
|
def random_password(length):
|
|
chars = string.ascii_letters + string.digits
|
|
password = ''.join(random.choice(chars) for i in range(length))
|
|
print(password)
|
|
|
|
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|
|
random_password(18)
|