What Will Be The Output Of The Following Python Codep Pre #857
What will be the output of the following Python code?</p> <pre><code class="language-python">import random random.choice(2,3,4)</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?
import random random.choice(2,3,4)
An integer other than 2, 3 and 4
Either 2, 3 or 4
Error
3 only