Test Index

CBSE Class 12 Computer Science 2024 Paper Set 4 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 4 of 35
Marks: +1, -0
What possible output from the given options is expected to be displayed when the following Python code is executed ?
import random
Signal = ['RED', 'YELLOW', 'GREEN']
for K in range(2, 0, -1) :
R = random.randrange(K)
print (Signal[R], end = '#')
Advertisements
Go to Question: