"""author: @pythonpips"""

planets = ['Moon', 'Earth', 'Mars', 'Universe']
planets.remove('Universe')

# planets outputs: ['Moon', 'Earth', 'Mars']
How To Remove An Element From The List In Python

Subscribe to our newsletter