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 …
Author: Tuan Anh Ho Dien
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 …
Building class and creating object in Python
1. Python is an object-oriented programming language Python is an object-oriented programming language (OOP). Building class and creating object in Python is commonly used. Almost …
Errors and Exceptions in Python
With errors and exceptions in Python, we will encounter errors when programming as well as when running programs. In Python, we can divide errors into …
Dictionary Data Structure in Python
1. What is a Dictionary? Creating a Dictionary in Python A Dictionary Data Structure in Python is used to store data in the form of …
Set data structure in Python
1. Characteristics of Set in Python The set data structure in Python helps store many elements. However, the elements in the Set have no order …
If…else branching control structure in Python
In this article, we will learn how to use the if…else structure in Python. The if…else statement is used to execute code if a specific …
Basic Input/Output in Python
This document provides an overview of basic input/output operations in Python. It includes examples of how to use the input() function to gather user input …
Basic data types in Python
1. Numeric Data Types in Python Python supports numeric data types: integers, floats, and complex numbers. Python defines classes int, float, and complex to store …