import random user_input = await input('Enter a number: ') for i in range(int(user_input)): x = random.randint(0, 6) print(x)