String indices can be floats?
Answers
Answered by
0
Answer:
All the characters of a string have a unique index. This index specifies the position of each character of the string. But you have to remember that all the indexes are integers. When you specify a string or a float as the index, you will encounter an error called TypeError: String Indices Must be Integers.
Similar questions