LinkedIn Python Skill Assessment Quiz Answers

What built-in list method would you use to remove items from a list?

Latest Update on 25th January, 2022 by Certification Course Answers

What built-in list method would you use to remove items from a list?

  1.  .delete() method
  2.  pop(my_list)
  3.  del(my_list)
  4.  .pop() method

Correct Answer:

  •  .pop() method

example:

my_list = [1,2,3]
my_list.pop(0)
my_list
>>>[2,3]

Latest Updates

No posts found in this category.