Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to replace number in list python

>>> numbers = [1 , 2, 3, 4, 4, 6] # a normal python list 
>>> numbers[4] = 5 # replace the redundant item (5th item) 
>>> numbers 
[1, 2, 3, 4, 5, 6] 
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #replace #number #list #python
ADD COMMENT
Topic
Name
6+8 =