Vidyalelo
Python · Q184

Module in Python

Programming · Python · question 184

Q184

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

A.
One of the elements in the list
Answer
B.
An error will occur
C.
[1, 2, 3, 4]
D.
4

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board