ExamPlay Dark Logo
Ingia

Computer Science for IGCSE & O level - Programming (Section 2 - No. 6)

What is the function of the `len()` method in Python (or equivalent in other languages, like 'length' in some)?
To find the largest value in a string.
To calculate the sum of numbers in a string.
To determine the number of characters in a string or elements in a list.
To convert a string to lowercase.

Maelezo

The len() method (or its equivalent) returns the length of a sequence.

Maoni (0)

Ingia Ili Kutoa Maoni
Tangazo
BrainBehindX Inc Logo
©2026; Inaendeshwa Na BrainBehindX Inc