subject

Need 2.5 code practice answers

copy and paste the following code into the sandbox window. modify the code so that user is asked to multiply two random numbers from 1 to 10 inclusive.

import random
random. seed()

# todo: update the following two lines with a call to a function
# from the random library that generates a random number between
# 1 and 10, inclusive.
a = 6 # hint: replace 6 with a function call
b = 3 # hint: replace 3 with a function call

print ("what is: " + str(a) + " x " + str(b) + "? ")
ans = int(input("your "))
if (a * b == ans):
print ("correct! ")
else:
print ("incorrect! ")

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
You know the right answer?
Need 2.5 code practice answers

copy and paste the following code into the sandbox window...
Questions
question
Mathematics, 24.08.2019 23:30
question
Mathematics, 24.08.2019 23:30
question
Social Studies, 24.08.2019 23:30
question
Mathematics, 24.08.2019 23:30
question
History, 24.08.2019 23:30
Questions on the website: 13722363