Category Python
Math Module in Python
We know a module is a file that contains a collection of related functions and other definition or statements. There are several modules present in the Python standard library and are automatically installed with your python installation. These modules are…
Packages in Python

Generally, a group of items or pack of items is called package. In Python, a package is nothing but a folder, or a directory that contains a collection of related multiple modules along with a special file named __init__.py. In…
Python Namespaces and Scope

When we write a program in Python language, it is important to understand the concept of namespaces and scope. Both terms are closely related and are used to access variables, functions, and other objects in the program. A namespace in…
Modules in Python
In this tutorial, we will learn modules in Python, which we can invoke into any program to perform different tasks. So, let’s first understand what is a module. A module in Python is a file which contains a collection of…
Dictionary Comprehension in Python
Dictionary comprehension is the third type of comprehension in Python. It is a short-hand and powerful technique of creating a new dictionary from an existing dictionary or other iterable objects, such as list or tuple. Dictionary comprehension was introduced in…
