Python How To Find Length Of List
Finding the length of a list in Python is incredibly easy. In fact I would say that this is probably one of the easiest things that I could cover except that I’ve already covered quite a few really easy beginner questions. Even experts need to Google things sometimes especially when you are switching between 4 or 5 different languages on a daily basis. Sometimes you just forget which function to call for a given language. Finding the length of a list in Python is one of those things.
To find the length of a list in Python just pass the list to the len() function like this:
a = ["turtle", "frog", "boat", "apple"]
print(len(a))
That’s it. You can just print out the