Articles → PYTHON → Calculate the length of a collection in python

Calculate the length of a collection in python






Example




tuple = ("Banana","Orange","Grapes","Straw berry")

print("Length of the collection is:", len(tuple))





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, February 25, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250