121.py 1 2 3 4 5 6 7 8 9 10 11 12import random import string length = int(input("Enter Password Length : ")) characters = string.ascii_letters + string.digits password = "" for _ in range(length): password += random.choice(characters) print(password)