Report Bug
Qus : What happens if you attempt to access an index that is out of range in a list?
Qusयदि आप किसी ऐसे इंडेक्स तक पहुँचने का प्रयास करते हैं जो किसी लिस्ट के रेंज से बाहर है तो क्या होगा?

A. It returns None.
B. It raises an IndexError
C. It creates a new element at that index.
D. It returns an empty list.


Solution
B. It raises an IndexError






Report Bug