What Will Be The Output Of The Following Python Codep Pre #863
What will be the output of the following Python code?</p> <pre><code class="language-python">random.seed(3) random.randint(1,5) 2 random.seed(3) random.randint(1,5)</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Modules - Python Random Module - Quiz No.1.
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)
3
2
Any integer between 1 and 5, including 1 and 5
Any integer between 1 and 5, excluding 1 and 5