About 3,530 results
Open links in new tab
  1. Python List and remove a variable - Stack Overflow

    Aug 27, 2016 · Using a list comprehension is probably the most pythonic way of doing this: ... This is because list.remove (x) only …

  2. python - Best way to remove elements from a list - Stack Overflow

    Feb 2, 2014 · Python’s lists are variable-length arrays, not Lisp-style linked lists. The implementation uses a contiguous array of …

  3. Python List remove() Method - GeeksforGeeks

    Jul 17, 2026 · Syntax list.remove (element) Parameter: element - item to remove from the list. Return Value: Does not return any …

  4. Python - Remove List Item - GeeksforGeeks

    Jul 23, 2025 · Removing List Item can be achieved using several built-in methods that provide flexibility in how you remove list items. …

  5. How to Remove an Element from a List in Python

    Sep 23, 2025 · Learn easy methods to remove an element from a list in Python with full examples. Simple, practical, and beginner …

  6. Python - Remove List Items - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, …

  7. How to Remove Items From Lists in Python

    Dec 23, 2024 · In this how-to guide, you'll explore different ways to remove items from lists in Python. Using practical examples, like …

  8. Python Remove Item from List: Methods & Examples - PyTutorial

    Aug 12, 2026 · Learn how to remove an item from a Python list using remove(), pop(), del, and list comprehension. Clear examples …

  9. How to Remove Items from a List in Python: The Complete Guide

    Aug 24, 2025 · In this guide, we’ll cover all the common ways to remove items from a list, explain when to use each method, and …

  10. How to Delete an Object From a List in Python? 5 Ways

    Mar 28, 2022 · And then finish with removing multiple objects. Method 1 – remove () Python list.remove () is a built-in list method that …