Sponsor Area
TextBook Solutions for Uttarakhand Board Class 12 Computer And Communication Technology Computer Science With Python Chapter 1 Review Of Phython
Question 6
What is 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
SIDES=['EAST','WEST','NORTH','SOUTH'];
N=random.randint(1,3)
OUT=''
for I in range(N,1,-1):
OUT=OUT+SIDES[I]
print OUT
| SOUTHNORTH | SOUTHNORTHWEST |
| SOUTH | EASTWESTNORTH |
Easy
Sponsor Area
Sponsor Area
Mock Test Series
Mock Test Series



