Q. Consider the code given below:
import random
r = random.randint (10, 100) - 10
print(r, end = ' ')
r = random.randint (10, 100) - 10
print(r, end = ' ')
r = random.randint (10, 100) - 10
print(r)
Which of the following are the possible outcomes of the above code? Also, what can be the maximum and minimum number generated by line 2?
(a) 12 45 22
(b) 100 80 84
(c) 101 12 43
(d) 100 12 10
Answer =
Option (a) the possible outcomes of the above code.
Max value:- 90
Min value :- 0
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )