Writing own len() in Python:

This method will return the number of elements in the list or length of string depending on the argument passed. Though we do not need to write it in python for data science but we must know atleast.

Implementing without using len():

Writing own len() in Python for Data Science - PST Analytics

Python implementation:

Writing own len() in Python for Data Science - PST Analytics 

So, to learn more about it in python for data science, you can check this and this as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.