What possible outputs(s) are expected to be displayed on screen at the time of execution of the program from the following code? Also specify the maximum values that can be assigned to each of the variables BEGIN and END.
import random
RUNS = [40,55,60,35,70,50]
BEGIN = random . rand int (0,2)
END = random . rand int (1,3)
for i in range(BEGIN,END+1):
print(RUNS[i],end='#')
(i) 60#35# (ii) 60#35#70#50# (iii) 35#70#50# (iv) 40#55#60# 33
Answers
Answered by
12
Answer:
BEGIN:
MAX VALUE:2
MIN VALUE:0
END:
MAX VALUE:3
MIN VALUE:1
Possible output:
(i)60#35#
(iv)40#55#60#35 ( only if it is 35 not 33 at the end )
#hope it helps you
please mark brainliest
Similar questions