मराठी

What possible outputs(s) will be obtained when the following code is executed? import random myNumber=random.randint (0, 3) COLOR=["YELLOW", "WHITE", "BLACK", "RED"] - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

What possible outputs(s) will be obtained when the following code is executed?

import random
myNumber=random.randint (0, 3)
COLOR=["YELLOW", "WHITE", "BLACK", "RED"]
for I in range (1, myNumber) :
              print (COLOR [I], end="*")
       print ()

पर्याय

  • RED*
    WHITE*
    BLACK*
  • WHITE*
    BLACK*
  • WHITE*WHITE*
    BLACK*BLACK*
  • YELLOW*
    WHITE*WHITE*
    BLACK*BLACK*BLACK*
MCQ
Advertisements

उत्तर

WHITE*
BLACK*
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×