len(s) functions.
I think you mentioned list
when it comes to arrangement
In addition to list
, len(s)
takes sequence
such as tuple
and dict
and collection
type factors to return the length of the object.
mylist = [1,2,3,4,5]
len(mylist)
mytuple = (1,2,3,4,5)
len(mytuple)
mydict = {1:2, 2:3}
len(mydict)
© 2025 OneMinuteCode. All rights reserved.