Examveda

What will be the output of the following code:
import random
print(random.choice([1, 2, 3, 4]))

A. One of the elements in the list

B. An error will occur

C. [1, 2, 3, 4]

D. 4

Answer: Option A


This Question Belongs to Python Program >> Module In Python

Join The Discussion

Related Questions on Module in Python