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, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
Jenny wants to create an animated short video to add to her website. which software will she use to create this animated video?
Answers: 1
question
Computers and Technology, 25.06.2019 04:50
Your program should prompt the user for the dimensions of the two squares matrices, making sure that the user input is greater than or equal to 4.[ yes, an example would be a4x4matrix]2.if the above is not met, prompt the user for a new value.3.now generate random integernumbers to fill both matrices.4.display these two matrices on the screen.5.multiply the two matrices and display the result on the scre
Answers: 2
question
Computers and Technology, 25.06.2019 08:30
When converting the erd to a table design, how should you handle the assignedto relationship? (be sure to include a discussion of primary keys, foreign keys, and tables in your answer.)11. true/false projectid will be a foreign key in the employees table to reflect the “manages” relationship.12. after converting the erd to a table design, what fields will be present in the contracts
Answers: 3
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
Chemistry, 24.09.2019 21:30
Questions on the website: 13722361