Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get tuple value python

tup1 = ('physics', 'chemistry', 1997, 2000);
tup2 = (1, 2, 3, 4, 5, 6, 7 );
print "tup1[0]: ", tup1[0];
print "tup2[1:5]: ", tup2[1:5];
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #tuple #python
ADD COMMENT
Topic
Name
4+8 =