Pylenin Weekly #10

Python Closures, Recursive functions and upcoming Python Bootcamp 2022.

Pylenin Weekly #10

Welcome to Pylenin Weekly #10, a newsletter dedicated to improving the lives of my fellow peers through knowledge sharing in the field of programming and Data.

This week, as promised, I have focused on topics like Closures and Recursive functions. These concepts are seldom used, but when used, they really demonstrate the true power of Python.


Python Closures

A Closure is a function object that remembers values in enclosing scopes even if they are not present in memory.

To understand the concept of closures, you have to understand nested functions and nonlocal variables.

I have explained all the relevant concepts in my blog and demonstrated those with proper examples. Do read my blog on Python Closures.

Closures in Python
Learn about Python closure, how to define a closure, and the reasons you should use it.

Recursive functions in Python

Look at the image below. It describes the concept of Recursion in a clean and compact image.

Recursion is the process of repeating items or operations in a self-similar way.

In Python, if your program allows you to call a function inside the same function, then it is called a Recursive Function.

Check out my blog on the Recursive function and its usage.

Recursive Functions in Python
Learn to create a recursive function in Python that calls itself.

Hello. I was wondering, can I join the course at this point? I'm really interested in programming, coding and want to learn, but I don't have experience in the field? Thank you in advance.

For those who are interested, I am starting Python Bootcamp from the 1st of April 2022. make sure, you are part of this newsletter to get notified when the course begins.

Hi, Your videos are awesome. could please make a video for real-time face recognition with OpenCV.

The above comment was posted on Tutorial 6 of Image Rekognition with AWS. You can check out the video by clicking below.

There are a lot of videos with OpenCV available on the internet. So, I never bothered to make a video myself. I will try to make a video with some new problem statements so that it is interesting and a little bit different.

If you have any recommendations, do share it with me!


Thank you again for being part of my family. Do share the newsletter with your friends and colleagues and help grow the Pylenin newsletter. If you have any queries or doubts, do contact me on Twitter.

See you next week with more interesting topics!

P.S. You can support my initiative and this newsletter by becoming a paid member of my website.