python 2.7 delete a list code example
Example 1: delete all elements in list python
mylist = [1, 2, 3, 4]
mylist.clear()
print(mylist)
# []
Example 2: delete a row in list python
del liste[number]
mylist = [1, 2, 3, 4]
mylist.clear()
print(mylist)
# []
del liste[number]