Teacher of Computing | String Slicing and Indexing in Python @AhcMeUk | Uploaded 5 years ago | Updated 19 hours ago
String Slicing and Indexing in Python
Indexing and Slicing. Strings in python support indexing and slicing. To extract a single character from a string, follow the string with the index of the desired character surrounded by square brackets ([ ]), remembering that the first character of a string has index zero.
String Slicing and Indexing in Python
Indexing and Slicing. Strings in python support indexing and slicing. To extract a single character from a string, follow the string with the index of the desired character surrounded by square brackets ([ ]), remembering that the first character of a string has index zero.