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.
20 lines
371 B
Python
20 lines
371 B
Python
11 months ago
|
|
||
|
from random import randint
|
||
|
|
||
|
#Challenges3
|
||
|
number_one = randint(1,10)
|
||
|
number_two = randint(1,10)
|
||
|
answer = int(input(f"What is {number_one} time {number_two} ?\n"))
|
||
|
if (number_one * number_two == answer):
|
||
|
print("correct")
|
||
|
else:
|
||
|
print("wrong")
|
||
|
|
||
|
#Challenge 4
|
||
|
number_one = randint(1,10)
|
||
|
for number in range(number_one):
|
||
|
if number >= 5:
|
||
|
print(number)
|
||
|
|
||
|
|