Note how strings start indexing from 0 and not 1, just as lists do. If the string had a space in
it, the space would also be counted as a character, as would any punctuation in the string.
Index 0
1
2
3
4 5
6
7
8
9 10 11
Value
H e l l o W o r l d !
Now you are familiar with dealing with lists, strings should hold no problems for you as they
use the same methods you have used with lists. However, I have included some additional
code which may prove useful.
668
Challenges 80 - 87: More String Manipulation
Example Code
P
Please note: in the examples below, “msg” is a variable name containing a string.