In python list
has no method to find the length. Rather we use general method len() available to find length of vaious types.
# Lenth of list
x = ["name", 25, "company", 120000]
print(len(x))
# Lenth of String
y = "names"
print(len(y))
# Lenth of tuple
z = ("name", 25, "company", 120000, 46578, "test")
print(len(z))
output of above program is -
4
5
6
Link of the sample