InterviewSolution
Saved Bookmarks
| 1. |
What are the possible outcome(s) executed from the following code ? Also specify the maximum and minimum values that can be assigned to variable PICKER.import randomPICKER = random randint (0, 3)COLOR = ["BLUE", "PINK", "GREEN", "RED"]:for I in COLOR :for J in range (1, PICKER):Print (I, end = " ")Print ()(i)(ii)(iii)(iv)BLUEBLUEPINKBLUEBLUEPINKBLUEPINKPINKGREENPINKPINKGREENBLUEPINKGREENGREENREDGREENGREENREDBLUEPINKGREENREDREDRED |
|
Answer» Option (i) and (iv) are possible OR option (i) only PICKER maxval = 3 minval = 0 |
|