Updated code, still no success. User is beeing asked only once. So I am thinking of the for loop which contains the variable i. Why? Well, good question. I am just learning by doing so would like to have some feedback.
import random from random import randrange for i in range(1, 5): x = random.randrange(0, 101) y = random.randrange(0, 101) tot = (x * y) a = int(input(f'What is {x} + {y}? ')) if a == tot: print('Correct') else: print(f'Not correct, the correct answer is {tot}.')