📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    In Python, what does len() function

    do?
    A Returns the size of a list, string, or other iterable Correct Answer Incorrect Answer
    B Calculates the sum of elements Correct Answer Incorrect Answer
    C Deletes an element Correct Answer Incorrect Answer
    D Creates a list Correct Answer Incorrect Answer
    E None of the above Correct Answer Incorrect Answer

    Solution

    len() returns the number of items in an object like list, tuple, string, or dictionary.

    Practice Next
    ask-question