How to Find the Shape of a Python Tuple or List
Python tuples and lists are objects that contain multiple values and it is a common task to determine the number of elements (or shape) in a tuple or list object. While this seems simple enough, there is one nuance that makes it a little more complicated. Shape of a One-dimensional Python Tuple or List The…