import random as r inp = int(input()) bukvi = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm'] numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] pasword = [] for i in range(inp): n = r.randint(0 , 1) if n == 1: pasword.append(r.choice(bukvi)) else: pasword.append(r.choice(numbers)) print("".join(map(str, pasword)))
from random import choice symbols = 'qwertyuiopasdfghjklzxcvbnm0123456789' password = ''.join(choice(symbols) for _ in range(int(input()))) print(password)