A quick way to return list without a specific element in Python

python

Solution

>>> suits = ["h", "c", "d", "s"]
>>> noclubs = list(suits)
>>> noclubs.remove("c")
>>> noclubs
['h', 'd', 's']

If you don't need a seperate `noclubs`

>>> suits = ["h", "c", "d", "s"]
>>> suits.remove("c")

Problem

If I have a list of card suits in arbitrary order like so: ``` suits = ["h", "c", "d", "s"] ``` and I want to return a list without the `'c'` ``` noclubs = ["h", "d", "s"] ``` is there a simple way to do this?

Original source

Related problems