study guides for every class

that actually explain what's on your next test

Slicing

from class:

AP Computer Science Principles

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.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.