Answers for "how to get value of tuple in python"

0

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];
Posted by: Guest on July-22-2021

Code answers related to "how to get value of tuple in python"

Browse Popular Code Answers by Language