Sitelet https://www.askpython.com/author/askpython
Pankaj Kumar

Pankaj Kumar

I have been working on Python programming for more than 12 years. At AskPython, I share my learning on Python with other fellow developers.
Weather API Python: Analyze Historical Trends

Weather API Python: Analyze Historical Trends

Historical weather records can help answer how conditions varied during a chosen period. A weather API returns data for a requested location and time span, which Python can use to calculate summaries. This article shows how to send a historical…

OS mkdir: Create Directories in Python

OS mkdir: Create Directories in Python

A program may need a directory at a particular filesystem path. Python’s directory-creation calls let you create one directory or create missing parent folders along the path. This article explains the os mkdir operation and shows how os.mkdir() and os.makedirs()…

Python Array Example: 13 Operations

Python Array Example: 13 Operations

Working with a sequence of values in Python starts with choosing how to represent those values. The array module lets you create an array by choosing a type code and supplying starting values. This article demonstrates array operations and compares…

Building Bingo with Python

Want to build your own bingo game? Python is a good way to get started. You can put together a basic version without getting bogged down in complicated code, then add features once the thing actually works. There’s a bit…

Python pytz: Migrate to zoneinfo

Python pytz: Migrate to zoneinfo

Updating timezone code in a Python app means checking that its dates still mean what you intend. pytz is a separately installed package for working with time zones, while zoneinfo is Python’s built-in option in Python 3.9 and later. This…