Update 'random_passwords/random18.py'

This commit is contained in:
sthope 2021-08-28 20:36:20 +02:00
parent eef2fa2678
commit 6f44daa58a

View File

@ -1,82 +1,20 @@
import random
import string
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
def random_password(length):
chars = string.ascii_letters + string.digits
password = ''.join(random.choice(chars) for i in range(length))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
print(password)
characters = string.ascii_letters + string.digits
password = ''.join(random.choice(characters) for i in range(18))
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)