challenge5 to 8

master
Spencerscooper 1 year ago
parent 328d5b54a9
commit 89bc2a5aa1

@ -38,3 +38,27 @@ else:
print(f"Wrong")

@ -0,0 +1,10 @@
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}")

@ -0,0 +1,5 @@
userInput = int(input("Enter a valid number :"))
if userInput > 100:
print(" Great number ")

@ -0,0 +1,5 @@
userInput = int(input("Enter a valid number :"))
if userInput == 100:
print(" Tie ")

@ -0,0 +1,10 @@
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!!")
Loading…
Cancel
Save