Python, unlike other languages, does not implement a normal “length()” or “size()” method to read the size of an array – e.g., “array.length().” Instead, it implements the len() method, which takes the array itself as a parameter. This method is identical between normal arrays, which are declared with “array.array(character)”; lists that are defined by square brackets “[]”; and tuples, which are defined by parentheses. Special object types, such as strings and trees, also implement this method. Tips Writer Bio
