Python List remove() method

The list.remove () method in Python removes the item at the specified position in the given list.

Syntax

Parameter

x: This parameter represents the element you want to remove and accepts any type (string, number, list etc.)

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This