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.
11 lines
327 B
Python
11 lines
327 B
Python
11 months ago
|
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" * 2))
|
||
|
if number_one * number_two == answer:
|
||
|
print(f"Your answer {answer} is correct!!")
|
||
|
else:
|
||
|
print(f"Wrong the correct answer is {number_one * number_two}")
|