Sling Academy
Home/Python/Page 28

Python

Python: Crawling HTML tables and save to CSV files

Updated: Feb 13, 2024
Introduction Web scraping is an invaluable skill in the vast domain of data science and analysis. In today’s digital world, a significant amount of data is stored in web pages as HTML tables. Python, with its rich ecosystem of......

Creating and Customizing Monthly Calendars in Python

Updated: Feb 13, 2024
Introduction Creating and customizing monthly calendars in Python is a fantastic way to familiarize yourself with Python’s time handling capabilities, as well as an opportunity to delve into customization aspects that Python so......

Python: How to find the day of the week for any date (3 methods)

Updated: Feb 13, 2024
Introduction Finding the day of the week for any given date is a common problem in software development. Whether you’re generating schedules, reports, or you’re just simply curious about what day of the week your birthday......

How to display full year calendars in Python

Updated: Feb 13, 2024
Introduction Python’s standard library provides an extremely versatile set of modules and methods that allow for efficient and straightforward coding. Among these, the calendar module represents a unique set of functions tailored......

Python: Generating a List of ‘datetime’ objects from a ‘calendar’ object

Updated: Feb 13, 2024
Overview In this tutorial, we delve into the realm of Python programming by focusing on how to generate a list of datetime objects derived from a calendar object. This can be particularly useful for developers who need to manipulate or......

The maximum number of items a dictionary can hold in Python: Explained with Examples

Updated: Feb 13, 2024
Intro In the Python programming language, dictionaries are powerful, flexible data structures that allow you to store and retrieve data by using keys. But how much data can a dictionary actually hold? In this tutorial, we’ll......

How to sort a list of tuples in Python (basic and advanced examples)

Updated: Feb 13, 2024
Overview Sorting is a common operation in programming when you need to organize your data in a particular order. Python, with its rich syntax and powerful data structures, provides simple and efficient ways to sort collections,......

Python: How to List All Leap Years in a Given Range (3 Examples)

Updated: Feb 13, 2024
Overview Finding leap years within a specified range involves understanding what constitutes a leap year and applying that knowledge to generate a list of years that fulfill the leap year criteria. This tutorial will guide you through......

How to generate weekly calendars in Python

Updated: Feb 13, 2024
Introduction Managing dates and calendars is a common requirement for many software applications. Python, with its powerful libraries, makes date manipulation, including generating weekly calendars, painless and straightforward. This......

Python: How to create an interactive command-line calendar application

Updated: Feb 13, 2024
Overview Building an interactive command-line (CLI) calendar application can be a fun and educational project. This tutorial will guide you through creating such an application using Python, a popular and versatile programming......

How to create HTML calendars with Python’s ‘calendar’ module

Updated: Feb 13, 2024
Introduction Creating HTML calendars using Python’s native calendar module offers a unique blend of simplicity and flexibility. This tutorial will guide you through generating customizable calendars in HTML format, ideal for......

Python: Create calendars and save to a CSV file

Updated: Feb 13, 2024
Overview Python is a versatile programming language, suitable for a myriad of tasks, including manipulating and saving data. In this tutorial, we will explore how to generate calendars in Python and export them into CSV files, a common......