del(list) python 1

del(list) python

del[a:b] #This will delete everything from range A to B

Here is what the above code is Doing:
1. We are creating a list called ‘del’
2. We are then deleting everything from index 0 to index 2
3. We are then printing the list

Similar Posts