Computers and Technology, 12.11.2020 17:10 musa79
Cans someone pls help me to do edhesive 2.5 code practice
this si the question=Currently, this program will add 6 and 3 together, output the math problem and output the answer. Edit this code so that a random number is generated from 1 - 10 (inclusive) for the variables a and b. Also, instead of adding the two numbers together, the edited program should multiply them, and output the proper math problem and answer. Be sure to update every line of code to reflect the changes needed.
this is what I have but it gives an error
import random
random. seed(1,10)
a = random. randint (1,10)
b = random. randint (1,10)
print ("What is: " + str(a) + " X " + str(b) + "?")
ans = int(input("Your "))
if (a * b == ans):
print ("Correct!")
else:
print ("Incorrect!")
Answers: 1
Computers and Technology, 24.06.2019 01:30, kevin72836
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
Computers and Technology, 24.06.2019 01:30, tanya44737
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
Cans someone pls help me to do edhesive 2.5 code practice
this si the question=Currently, this prog...
Social Studies, 28.09.2021 01:00
Chemistry, 28.09.2021 01:00
Physics, 28.09.2021 01:00
Computers and Technology, 28.09.2021 01:00