Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
del list python
Tanner Swett
Programming language:
Python
2021-02-01 00:17:59
0
Q:
del list python
Gustavo Corral
Code:
Python
2021-01-19 10:56:01
mylist = [1, 2, 3, 4] mylist.clear() print(mylist) # []
5
Abhilaaj
Code:
Python
2021-02-01 00:25:00
list.remove(element)
11
Tags
python
list
Related
del vs remove python
New to Communities?
Join the community