Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Updating lists

#!/usr/bin/python

list = ['physics', 'chemistry', 1997, 2000];
print "Value available at index 2 : "
print list[2]
list[2] = 2001;
print "New value available at index 2 : "
print list[2]
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Updating #lists
ADD COMMENT
Topic
Name
8+6 =