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 02:40
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles.all forms of media will her decide because the media always portrays rigid ideas about gender roles.all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Need 2.5 code practice answers

copy and paste the following code into the sandbox window...
Questions
question
Mathematics, 07.05.2021 22:50
question
Mathematics, 07.05.2021 22:50
question
Computers and Technology, 07.05.2021 22:50
question
Mathematics, 07.05.2021 22:50
question
Mathematics, 07.05.2021 22:50
question
Mathematics, 07.05.2021 22:50
Questions on the website: 13722359