Examveda

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

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


This Question Belongs to Python Program >> Module In Python

Join The Discussion

Related Questions on Module in Python