Saved Bookmarks
| 1. |
Observe the following program and answer the questions that follow:import randomx=3N = random.randint(1, x)for i in range (N) :print i, '#', i + 1a. 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?i. 0#1ii. 1#2iii. 2#3iv. 3#4 |
|
Answer» a. Minimum Number = 1 Maximum Number = 3 b. Line iv is not expected to be a part of the output. |
|