Question

    What does the 'len()' function do in Python?

    A Calculates the logarithm of a number Correct Answer Incorrect Answer
    B Returns the square root of a number Correct Answer Incorrect Answer
    C Returns the length of a sequence or collection Correct Answer Incorrect Answer
    D Converts a number to a string Correct Answer Incorrect Answer

    Solution

    Returns the length of a sequence or collection

    Practice Next

    Relevant for Exams: