Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
239 B
2
Indexable
Never
import random
password_length = int(input("Enter your password length: "))
char = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
generated_array = random.choices(char, k=password_length)
password = "".join(generated_array)
password
print(password)
Leave a Comment