Written by the Fiveable Content Team โข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated August 2025
Definition
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.