All Subjects
Light
AP Computer Science Principles
The function "len()" returns the number of elements (items) in a given sequence, such as a string, list, or tuple.
function: A named block of code that performs a specific task when called upon.
sequence: An ordered collection of elements where each element has an assigned position/index.
tuple: Similar to lists but immutable (cannot be modified once created).