In Python, is the following the only way to get the number of elements?
arr.__len__()
If so, why the strange syntax?
len(list_name) function takes list as a parameter and it calls list's __len__() function.
len(list_name)
__len__()