What is 'String Indexing'?

Asked by emeka_nwankwo · 6 months ago

1 Answer

58
amorebise · 6 months ago Top Answer

Indexing is how we get a specific letter from a string using its position number. Remember: we start counting at 0!

If you have city = "Ibadan", then city[0] is "I" and city[1] is "b". It’s like using a house number to find a specific building on a street.

Log in to add a comment.