which error is generated when the index is not integer?
Name Error
indexError
BoundError
TypeError
Answers
Answered by
2
Answer:
Not sure but indexError may be.
Answered by
0
Answer:
TypeError is generated when the index is not integer.
Explanation:
- TypeError is an exception in the python programming language. This exception occurs when an operation is performed on an unsupported or invalid object type .
- The structure of the string consists of index values. The starting index value is 0, and it will continue till the length of the given string.
- TypeError arises whenever we want to fetch out the particular character of the string with the specified index value and instead of entering the integer value in the index, we enter another value of a different object type.
Similar questions