⌨️ap computer science principles review

Len

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

The function "len()" returns the number of elements (items) in a given sequence, such as a string, list, or tuple.

"Len" also found in: