You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CSC221/Week-2/mathquiz/challenge8.py

11 lines
242 B
Python

from random import randint
#Challenges5
number_one = randint(1,10)
number_two = randint(1,10)
answer = int(input(f"What is {number_one} times {number_two} ?\n"))
if number_one * number_two == answer:
print("yes")
else:
print("No!!")