Pranathi M has Published 23 Articles

How to develop a Python Module?

Pranathi M

Pranathi M

Updated on 16-Sep-2022 07:19:09

422 Views

A file containing Python commands and definitions is referred to as a module. These files named .py which contain that contains Python code, such as example.py, and the name of the module is an example. Modules are used to divide down huge applications into smaller, more manageable files. The prerequisites ... Read More

How to get full path of current file's directory in Python?

Pranathi M

Pranathi M

Updated on 16-Sep-2022 06:51:34

6K+ Views

Python's OS module includes functions for creating and removing directories (folders), retrieving their contents, altering, and identifying the current directory, and more. To interface with the underlying operating system, you must first import the os module. The location (path) of the executing program code can be obtained in Python. py ... Read More

How to remove a key from a python dictionary?

Pranathi M

Pranathi M

Updated on 16-Sep-2022 06:49:27

663 Views

In python, a dictionary is an unordered collection of data which is used to store data values such as map unlike other datatypes that store only single values. Keys of a dictionary must be unique and of immutable data type such as Strings, Integers, and tuples, but the key values ... Read More

Advertisements