Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove item from list in python

nums = [1, 2, 3, 4, 5, 6]
del(nums[5])
print(nums) # Output will be [1, 2, 3, 4, 5]
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #remove #item #list #python
ADD COMMENT
Topic
Name
7+8 =