Answers for "python get value from tuple"

-1

how to view a tuple

data[0]
Posted by: Guest on June-24-2020
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

Browse Popular Code Answers by Language