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.

34 lines
708 B
Python

from random import randint
print("What is 7 times 2?")
value1 = int(input ("first value"))
value2 = int(input("second value"))
if value1 * value2 == 14:
print("This is your answer " + str (value1*value2))
else:
print("Try again!!")
#Challenge 2
print("Enter any two valid number to know it sum")
number1 = int(input("first number"))
number2 = int(input("second number"))
print("Your answer is " + str(number1+number2))
#Challenge 3
print("What is 7 time 3")
numberOne = int(input("Type in your answer now"))
if numberOne == 21:
print(numberOne)
#Challenge 4
RandomNumber = randint(10,20)
print(RandomNumber)
print(RandomNumber)
print(RandomNumber)
print(RandomNumber)
print(RandomNumber)