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

  • google app store apple app store
  • ✖

      Question

      Complete the Python function to return the number of

      elements in a given list. def get_list_length(my_list):     _________ # Line to complete
      A return my_list.size() Correct Answer Incorrect Answer
      B return my_list.length Correct Answer Incorrect Answer
      C return len(my_list) Correct Answer Incorrect Answer
      D return my_list.count() Correct Answer Incorrect Answer
      E return my_list.capacity Correct Answer Incorrect Answer

      Solution

      The correct answer is C

      Practice Next
      ask-question