Niharikaa Aitam has Published 93 Articles

How does underscore \\\\"_\\\\" work in Python files?

Niharikaa Aitam

Niharikaa Aitam

Updated on 17-Apr-2025 17:44:02

621 Views

In Python, the underscore (_) is a special character with different meanings based on how and where it is used. It plays a significant role in readability, naming conventions, and interpreter behavior. In this article, we will discuss different scenarios of using the Underscore(_) in Python. Single Underscore _ in ... Read More

How do I list all files of a directory in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 17-Apr-2025 17:37:45

903 Views

Among several file-handling operations in Python, the need to list all files in a directory is the most common one, and it's quite straightforward. Python offers a module named os that provides functions to work with the operating system, the directories, and the files seamlessly. In this article, we will cover ... Read More

How to create an empty dictionary in Python?

Niharikaa Aitam

Niharikaa Aitam

Updated on 15-May-2023 10:27:54

4K+ Views

The dictionary is the data structure available in python. Dictionaries are also known as associative memories or associative arrays. It is represented by curly braces {}. It stores the data in the form of key and value pairs. Data from a dictionary can be accessed by its key, unlike ... Read More

Previous 1 ... 6 7 8 9 10
Advertisements