Question:
What are the possible outcome(s) executed from the following code? Also
specify the maximum and minimum values that can be assigned to variable N.
import random
NAV = ["LEFT","FRONT","RIGHT","BACK"];
NUM = random.randint(1,3)
NAVG = ""
for C in range(NUM,1,-1):
NAVG = NAVG+NAV[I]
print NAVG
| (i) BACKRIGHT | (ii) BACKRIGHTFRONT |
| (iii) BACK | (iv) LEFTFRONTRIGHT |
C. Sir| Created: 10-Jan-2019 | Updated: 10-Jan-2019|CBSE12A-2017
