Category Python

Lambda Function in Python

A function that is defined without a name is called lambda function in Python. It usually consists of a one-line expression that shows a function using the lambda construct. Sometimes, we also call it as an anonymous function in Python.…

Global in Python | Global Keyword

Global in Python is a keyword that we use to make a variable global in the function. A global keyword allows us to modify a variable outside of the current scope. The scope of local variable is limited to the…

Scope in Python

Using a function defines the concept of scope in Python. If we define a variable inside a function or pass a value to a function’s parameter, the value of that variable is only really accessible within that function. This is…