Question:

What kind of build in exception will show by the following code ?
str = ‘Today is holiday’
print(str[20])

Updated On: Sep 23, 2024
  • NameError
  • IndentationError
  • IndexError
  • TypeError
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct option is () :
Was this answer helpful?
0
0