Daily Dose of Data Science

Share this post

A Counterintuitive Fact About Python Functions

www.blog.dailydoseofds.com

A Counterintuitive Fact About Python Functions

Python is simple, but at times, can feel a bit tricky as well.

Avi Chawla
Mar 19, 2023
5
Share
Share this post

A Counterintuitive Fact About Python Functions

www.blog.dailydoseofds.com

Everything in python is an object instantiated from some class. This also includes functions, but accepting this fact often feels counterintuitive at first.

Here are a few ways to verify that python functions are indeed objects.

The friction typically arises due to one's acquaintance with other programming languages like C++ and Java, which work very differently.

However, python is purely an object-oriented programming (OOP) language. You are always using OOP, probably without even realizing it.

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new about Python and Data Science every day.

👉 Read what others are saying about this post on LinkedIn: Post Link.

👉 If you liked this post, leave a heart react 🤍.

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science


Find the code for my tips here: GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.

5
Share
Share this post

A Counterintuitive Fact About Python Functions

www.blog.dailydoseofds.com
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing