All Subjects
Light
AP Computer Science Principles
Slicing is a way to extract a portion of a string by specifying the starting and ending index. The resulting slice includes all characters from the starting index up to, but not including, the ending index.
A substring is a smaller part of a larger string that can be extracted using slicing or other string manipulation techniques.
An index refers to the position of each character in a string, starting from 0 for the first character.
Concatenation is combining two or more strings together into one longer string.