Two common data formats today are XML and JSON. In Python, we can convert between these two data formats. This article will use the xmltodict …
Tag: python
Writing JSON file with Python
Before reading this article, you should read Reading JSON file with Python to understand the basic concept of JSON as well as how to read a JSON …
Reading JSON files with Python
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 …
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 as well as how …
How to read an XML file in Python
1. What is XML? XML stands for eXtensible Markup Language. It is often used to organize, store, and transmit data between different systems. XML is …
Using Directory in Python
When there are too many files in a program, they need to be organized into directories to manage them easily. A directory can contain files …
Write, Create, and Delete Files 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 Files in Python
1. How to Open a File in Python When working with files, there are 3 steps that we need to go through: Opening a file …
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 …