Observe the following program and answer the questions that follow:
Area=["NORTH","SOUTH","EAST","WEST")
for I in range(2)
ToGo random randrange(0,1)+ 1
print(Area[ToGo),end=";")
(a) What is the minimum and maximum number of times the loop will execute?
(b) Find out, which line of output(s) out of (i) to (iv) will not be expected from the program
#Output Options:
i. SOUTH : SOUTH :
ii. NORTH : SOUTH : EAST :
iii. SOUTH : EAST: WEST: iv. SOUTH : EAST: EAST:
Answers
Answered by
0
Answer:
the answer is that the east or west
Similar questions