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))



Output


Picture showing the length of the collection in python



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250