1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Indexing
Accessing a character using its position.
→ Python starts counting at 0.
Negative indexing
→ Counts characters from the end of the string.
Slicing
→ Extracting part of a string using a range of indexes.
End Index rule
→ The ending index in slicing is excluded
[:] (Full Slice)
→ Creates a copy of the string.