Skip to main content

Data Types in Python

In our previous Python tutorial, we have explained about File Handling in Python. In this tutorial, we will discuss about Data Types in Python.

The data types are important in any programming language. The variables can store values and every vaue has data types. As Python is a dynamically typed language, so we do not need to define the type of the variable while declaring vairable as the interpreter implicitly binds the value with its type.

In spite of dynamically typed language, Python still provided some build-in data types that define the storage method on each of them. (more…)

Reading CSV File using Python

In our Python tutorial, you have learned how to write CSV file in Python. In this tutorial, you will learn how to read CSV File in Python.

CSV (comma-separated values) file is a delimited text file. The file consists of one or more lines of data record. Each data record consists of values separated by commas, all the lines of a CSV file have the same number of values.

Here in this tutorial, we will implement how to read a CSV file to get file data. We will use csv module from Python to read CSV file. (more…)

Writing an Excel File in Python

In our previous Python tutorial, you have learned how to Reading an Excel File in Python. In this tutorial, you will learn how to Write an Excel File in Python.

The Excel spreadsheet is a popular file type that lets to create, view, edit, and share your files with others quickly and easily.

In this tutorial, we will use Openpyxl module from Python to wrting to an Excel file with extension such as (xlsx/xlsm/xltx/xltm). The Openpyxl module allows to read and write Excel files. (more…)