by Shahinur | Aug 16, 2019 | Python
A lambda function is essentially an anonymous or unnamed function. In the previous function section, we saw that the def keyword is used to define a function. However, lambda functions do not require this. Let’s see an example: # This program is an example of lambda...
by Shahinur | Aug 12, 2019 | Python
In programming, recursion is an important topic. When a function calls itself, it is called recursion. Python allows the use of recursion. When thinking about recursion, the first example that comes to mind is calculating the factorial of a number. Let’s look at...
by Shahinur | Aug 11, 2019 | Python
A function is a specific block of code that performs a distinct and singular task. For instance, an electric fan above our heads rotates, performing a specific task, just like a tube light illuminates, each carrying out a unique function by converting electrical...
by Shahinur | Jul 26, 2019 | Python
Our lives resemble a loop. Waking up in the morning, performing daily rituals, heading to our respective workplaces, having lunch, returning home for dinner and rest, engaging in some entertainment if time permits, and sleeping at night. This is how our daily routine...
by Shahinur | Jul 21, 2019 | Python
Similar to sets, the dictionary data type in Python is a special data structure not commonly seen in other programming languages. In a dictionary, data is organized as key-value pairs. Values can be accessed using keys. Dictionaries are written inside curly braces. #...
Recent Comments