Computer Science, asked by Vegito1265, 5 hours ago

String indices can be floats?

Answers

Answered by vallamkondushalini90
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