Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 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.