Blog
Lambda Function in 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...
Recursion in Python
In programming, recursion is an important topic. When a function calls itself, it is called recursion. Python allows the use of recursion. When...
Function in 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...
Loop in Python
Our lives resemble a loop. Waking up in the morning, performing daily rituals, heading to our respective workplaces, having lunch, returning home...
Conditional Statement
Conditional statements play a very important role in programming. Decisions are made through conditional statements. We make various decisions every...
Dictionary in 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,...
Sets in Python
A set in Python is a unique data structure based on the mathematical concept of a set. It does not follow any order or index. Elements in a set are...
Tuples in Python
Similar to lists, tuples are an important data type in Python. Tuples follow a specific order; however, unlike lists, their elements cannot be...
List in Python
Lists are a widely used data type in Python. In most programming languages, they are known as arrays. They follow a specific order and can be...