Understanding *args and **kwargs in Python

In Python programming, if you want to pass the variable number of arguments to a function you can do this by using special symbols. The two special symbols are given

Python Lambda Function

The Lambda function in Python programming which is also known as anonymous function is a function without any name. It is a small function restricted to a single line. Like the normal function in Python, it can take multiple arguments but the function body should contain only one expression. Regular

Python filter() function

The filter function in Python filters the elements from a sequence or iterable with the use of a function that is passed as an argument to filter function. It tests each element that if it satisfies a certain condition or not. Like the Python map() function, the filter() function also

Python map() function

The map() function in Python applies a function to each element of an iterable. This function takes two arguments first is function and the second is iterable and returns a map object. In this article, you will learn how to use the map() function in Python. The syntax of the

Python enumerate() function

Sometimes you may want to track the position of items in an iterable. You can do this in various ways, for example, you can create a counter variable and initialize it with zero now in every iteration increment the value of the counter variable, this will track the position of

Python Iterator vs Iterable

In Python, you might come up with the terms like iterator, iterable, iteration, etc. This can be confusing for many of you especially for those who are beginners. So in this article, you will see the differences among all of them. Iterable The iterable in Python is anything you can