How to Read XML Files in Python?

Read XML Files in Python

In this tutorial, I will explain how to read XML files in Python. As a developer working on a project, I came across a scenario where I needed to read XML. I explored various ways to accomplish this task and will share my findings with suitable examples. XML Structure Before getting into the code, let’s … Read more >>

How to Skip the First Line in a File in Python?

Skip the First Line in a File in Python

In this tutorial, I will explain how to skip the first line in a file in Python. As a developer working on a project for one of my New York clients, I came across a scenario where I needed to skip the first line in the file while processing CSV files and text files. After … Read more >>

How to Split a File into Multiple Files in Python?

Split a File into Multiple Files in Python

Recently in a Python webinar, someone asked me how to split a file into multiple files using Python. After researching and experimenting I found three important methods to accomplish this task. In this tutorial, I will explain the important methods along with suitable examples. Split a File into Multiple Files in Python Python provides various … Read more >>

How to Read Tab-Delimited Files in Python?

Read Tab-Delimited Files in Python

In this tutorial, I will explain how to read tab-delimited files in Python. Tab-delimited files, commonly known as TSV (Tab-Separated Values) files, are a simple text format for storing data in a tabular structure. Recently someone asked me how to read tab-delimited files which made me explore more about this topic and I will share … Read more >>

How to Unzip a File in Python?

Unzip a File in Python

I faced an issue recently when I needed to extract a large dataset from a zip file as a part of my project for one of my clients. In this tutorial, I will explain how to unzip a file in Python. I researched this topic and I will share my findings in this post along … Read more >>

How to Get the File Size in MB using Python?

Get the File Size in MB using Python

As a software developer working on a project for a client in the USA, I recently faced a scenario where I needed to retrieve the size of a file in MB. After researching and experimenting with different methods, I discovered several effective ways to accomplish this task. In this tutorial, I will explain how to … Read more >>

How to Set Global Variables in Python Functions?

Set Global Variables in Python Functions

In this tutorial, I will explain how to set global variables in Python functions. Someone asked me about setting global variables in Python functions in the Python training classes, which made me explore more about this topic and find four important methods to achieve this task, I will share my findings with suitable examples and … Read more >>

How to Return Multiple Values from a Function in Python?

Return Multiple Values from a Function in Python

As a Python developer working on a project for one of my clients, I came across a scenario where I needed to return multiple values from a function in Python. After researching and experimenting I found three effective ways to accomplish this task. Let us learn more about this topic with suitable examples. Return Multiple … Read more >>

How to Access Variables Outside a Function in Python?

Access Variables Outside a Function in Python

In this tutorial, I will explain how to access variables outside a function in Python. As a developer working on various projects, I came across a scenario where I needed to access variables outside a function. After researching I found some ways to accomplish this task. By the end of this post, you will clearly … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.