Login and Register ×
Check your Email for the OTP
Python Programming Language MCQ Python Errors and Exceptions Handling
⚠ Report ✓ Question Verified Copy Link
x = [10, 20, 30, 40] print(x[20])
Explanation:
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) Input In [67], in () 1 x = [10, 20, 30, 40] ----> 2 print(x[20]) IndexError: list index out of range
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Python Programming Language MCQ Python Errors and Exceptions Handling