Answers for "how to remove ' from list python"

3

remove in list python

# animals list
animals = ['cat', 'dog', 'rabbit', 'guinea pig']

# 'rabbit' is removed
animals.remove('rabbit')

# Updated animals List
print('Updated animals list: ', animals)
Posted by: Guest on May-01-2020
1

Python Remove List Items

thislist = ["apple", "banana", "cherry"]
thislist.remove("banana")
print(thislist)
Posted by: Guest on February-28-2021

Code answers related to "how to remove ' from list python"

Python Answers by Framework

Browse Popular Code Answers by Language