What Will Be The Output Of The Following Python Codep Pre #1153
What will be the output of the following Python code?</p> <pre><code class="language-python">lst = [1, 2, 3] lst[3]</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Exception Handling - Python Exception Handling - Quiz No.1.
What will be the output of the following Python code?
lst = [1, 2, 3] lst[3]
NameError
ValueError
IndexError
TypeError