import random Letter = input("Enter a letter: ") numbr = random.randint(1, 10) for _ in range(numbr): print(Letter, end='')