The goal of the program is for it to multiply two random numbers less than 12 and for the user to guess the answer. So far i have this . . .
import random g=0 while g<10: variable_1 = random.randint (0,13) variable_2 = random.randint (0,13) answer = variable_1 * variable_2 guess = input("What is 'variable_1' x 'variable_2'?") if guess == answer: print "Correct!" else: print "Incorrect!"
The problem is the input box literally says "What is Variable_1 x Variable_2?". But, i want it to have the value of the variables in the input box. Is there a way to do this?