
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Niharikaa Aitam has Published 93 Articles

Niharikaa Aitam
20K+ Views
When we are dealing with large directories, managing files and folders is often required in listing them in a specific order. One common approach to list out the files/folders is sorting items by their names, which makes navigation and processing much easier. Python simplifies this task with built-in modules such ... Read More

Niharikaa Aitam
16K+ Views
In few scenarios, we need to change the extension of a file programmatically such as renaming a .txt file to .md or converting .csv to .json. Python provides different ways to do this using the os and pathlib modules. In this article, we’ll explore how to change a file’s extension ... Read More

Niharikaa Aitam
4K+ Views
In Python, when we are working with directory structures, it is necessary to check whether a given directory contains any other directories within it or not. This process of checking is useful when performing batch operations, cleaning up folders, or traversing file systems. Python provides several built-in ways to perform ... Read More

Niharikaa Aitam
8K+ Views
In some scenarios, it is important to determine the MIME type of a file to verify its content type, especially when working with file uploads or handling media files. Python provides modules such as mimetypes and magic to determine the MIME type of a file. In this article, we’ll explore ... Read More

Niharikaa Aitam
8K+ Views
When we are building Python applications that store or retrieve user-specific files and settings, then we will often need to access the home directory. The home directory is the default location on a computer where user-related data is stored, such as documents, configuration files, and application data. Python provides simple ... Read More

Niharikaa Aitam
35K+ Views
In Python, it is a common scenario that the files we want to work with should be placed in the same folder as the script itself. Simply we with the reference of a filename like "data.txt" may not always work as expected, especially when the script is executed from a ... Read More

Niharikaa Aitam
30K+ Views
We may see many situations in Python where we need to remove all the files from a particular folder. For example, we may need to perform cleaning up temporary logs, resetting application data, or managing output directories. This can be done by simply pointing ... Read More

Niharikaa Aitam
3K+ Views
When working with files in Python programming, the common tasks we can perform are reading data, writing logs or processing content. If the files are not managed in a proper way then it leads to issues such as resource leaks, file corruption or unexpected errors. In this article, we'll explore ... Read More

Niharikaa Aitam
1K+ Views
In Python programming, it is important to check whether a given path points to a file or a directory. This check is very useful before performing operations such as reading, writing or listing contents. In this article, we’ll see the different methods to identify file types using Python. Why should ... Read More

Niharikaa Aitam
12K+ Views
In Python, when working with files and directories, we may often need to get a list of subdirectories within a specific location, especially the current working directory. In this article, we are going to use the different methods available in Python to get a list of all subdirectories in the ... Read More