Vidyalelo
Python · Q105

Module in Python

Programming · Python · question 105

Q105

What will be the output of the following Python code? random.seed(3) random.randint(1,5) 2 random.seed(3) random.randint(1,5)

A.
3
B.
2
Answer
C.
Any integer between 1 and 5, including 1 and 5
D.
Any integer between 1 and 5, excluding 1 and 5

Answer: Option B

Solution

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