Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check tuple length

#!/usr/bin/python

tuple1, tuple2 = (123, 'xyz', 'zara'), (456, 'abc')
print "First tuple length : ", len(tuple1)
print "Second tuple length : ", len(tuple2)

# First tuple length : 3
# Second tuple length : 2
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #python #check #tuple #length
ADD COMMENT
Topic
Name
9+3 =