subject
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!")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
You know the right answer?
Cans someone pls help me to do edhesive 2.5 code practice this si the question=Currently, this prog...
Questions
question
Physics, 16.10.2021 01:00
question
Mathematics, 16.10.2021 01:00
question
Mathematics, 16.10.2021 01:00
question
Physics, 16.10.2021 01:00
question
Mathematics, 16.10.2021 01:00
Questions on the website: 13722367