Category: PYTHON

Lambda Function in PYTHON (Anonymous Function)

Lambda Function, also referred to as ‘Anonymous function’ is same as a regular python function but can be defined without a name. While normal functions are defined using the def keyword, anonymous functions are defined using the lambda keyword. However, they are restricted to single line of expression. They can take in multiple parameters as […]

Python filter() Function

Python filter() Function is used to get filtered elements. Python filter() Function takes two arguments, first is a function and the second is iterable. Python filter() Function returns a sequence from those elements of iterable for which function returns True. The first argument can be None if the function is not available and returns only […]

Python map() Function

The Python map() Function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.) The Python map() Function is used to return a list of results after applying a given function to each item of an iterable(list, tuple etc.)   For […]

Python reduce() Function

Python reduce() Function is a function that implements a mathematical technique called folding or reduction. reduce() is useful when you need to apply a function to an iterable and reduce it to a single cumulative value. Python’s reduce() is popular among developers with a functional programming background, but Python has more to offer. The reduce(fun,seq) function is used to apply a particular function passed in its […]

Python Random module

The Python Random module is a built-in module to generate the pseudo-random variables. It can be used perform some action randomly such as to get a random number, selecting a random elements from a list, shuffle elements randomly, etc. The Python random module functions depend on a pseudo-random number generator function random(), which generates the float […]

File Handling in Python

Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files. This file handling concept in python is also easy and short. Python treats file differently as text or binary and this is important. Each line of code […]

What is Multithreading in Python?

This blog covers the basics of Multithreading in Python programming language. Just like multiprocessing, multithreading is a way of achieving multitasking. In multithreading, the concept of threads is used. Let us first understand the concept of thread.. What is Thread? In computing, a process is an instance of a computer program that is being executed. […]

Database Programming in Python

Database Programming in Python: The Python programming language has powerful features for database programming. Python supports various databases like MySQL, Oracle, Sybase, PostgreSQL, etc. Python also supports Data Definition Language (DDL), Data Manipulation Language (DML), and Data Query Statements. For database programming, the Python DB API is a widely used module that provides a database […]


DICTIONARY Data Structure in PYTHON is an unordered collection of data values, which is used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, a Dictionary consists of key-value pair. Key-value is provided within the dictionary to form it more optimized. In the […]