1. What is JSON (JavaScript Object Notation)? JSON (JavaScript Object Notation) is a data format originating from the JavaScript language. Data in JSON is mainly …
Tag: python
How to Write an XML File in Python
Before reading this article, you should read the article Read XML file with Python to understand the basic concepts of XML and how to read …
How to Read an XML file in Python
1. What is XML? XML stands for eXtensible Markup Language. XML is frequently utilized for organizing, storing, and transmitting data between various systems. It follows …
Using Directory in Python
To manage a large number of files in a program, it is necessary to organize them into directories for easy management. A directory can contain …
Write, Create, and Delete a File in Python
1. How to write a file in Python To write data to an existing file, we can open the file with the open() function with …
Open and Read a File in Python
Python provides a simple way to work with files. Whether it is reading from or writing to a file, Python has easy-to-use built-in functions to …
User-Defined Exception in Python
We have learned about Exception in the article Errors and Exceptions in Python. Then, handling Exceptions was introduced in the article Handling exceptions in Python. …
Operators overloading in Python
1. What is operator overloading? Python provides many types of operators to manipulate the data types supported by Python. An operator performs different actions on …
Encapsulation and Polymorphism in Python
1. Encapsulation in Python Encapsulation is one of the essential features of object-oriented programming. The goal is to guarantee that the class contains all the …
Multiple Inheritance in Python
1. Multiple Inheritance in Python A child class can inherit from more than one parent class. This is multiple inheritance. The child class inherits all attributes …