Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:20, khenalilovespandas
Number of megabytes of ram in a computer. qualitative or quantitative? because
Answers: 3
image
Computers and Technology, 23.06.2019 07:00, Dvrsug8598
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
image
Computers and Technology, 24.06.2019 02:50, rurbanok12
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
image
Computers and Technology, 24.06.2019 16:00, bsrlee1115
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
Do you know the correct answer?
Need 2.5 code practice answers

copy and paste the following code into the sandbox window...

Questions in other subjects:

Konu
English, 03.12.2019 11:31
Konu
Mathematics, 03.12.2019 11:31
Konu
Mathematics, 03.12.2019 11:31