Python

Equipment Borrowing System using Python Django and SQLite with Source Code

Submitted by jaypabs on
The Equipment Borrowing System is a web application built with Python Django and SQLite for school computer laboratories, electronics labs, AV rooms and property custodian offices. It replaces the logbook where students write down the laptop, projector or multimeter they borrowed, and it answers the questions a lab in-charge asks every day: What is still out? Who is late? How many units are left

Python Regex Tutorial: re.search, findall, sub and Validation with Examples

Submitted by jaypabs on

Sooner or later every programmer needs to find a pattern inside text: pull the dates out of a log file, check if an email address looks valid, clean up extra spaces in a name, or turn a title into a URL slug. You could write loops and if statements for each case, but there is a much shorter way: regular expressions (regex). Python supports them through the built-in re module, so there is nothing to install.

Python CSV Tutorial: Read, Write, Append and Filter CSV Files with the csv Module

Submitted by jaypabs on

CSV (comma-separated values) files are everywhere: exported Excel sheets, Google Forms responses, bank statements, grade sheets, product lists for an inventory system. Sooner or later every programmer has to read one, clean it, compute something and write a new file. In Python you do not need to install anything for that. The built-in csv module handles it, including the tricky parts like commas inside a field, quotes, different delimiters and Excel-friendly encodings.

Python Decorators Explained with Examples: Logging, Timing, Retry, Access Control and Caching

Submitted by jaypabs on

Have you ever seen a line like @app.route("/") in Flask or @login_required in Django and wondered what that little @ symbol actually does? That is a decorator, one of Python's most powerful features. A decorator lets you add extra behavior to a function, such as logging, timing, retrying or permission checks, without changing the function's own code.

Library Management System using Python Flask and SQLite with Source Code

Submitted by jaypabs on
The Library Management System is a web application built with Python Flask and SQLite. It lets a librarian manage books and members, issue and return books, and instantly see which loans are overdue, all from a clean browser-based dashboard. It is small enough to read in one sitting, yet it covers the features teachers usually look for in a school project: login, full CRUD, searching

How to Use itemgetter to Sort Dictionary Lists in Python

Submitted by razormist on

In this tutorial, we will learn how to program "How to Use itemgetter to Sort Dictionary Lists in Python". The objective is to use the `itemgetter` function to sort a list of dictionaries. This tutorial will guide you step by step through the process of sorting dictionaries using `itemgetter`. By the end of this tutorial, you will have a solid understanding of how to implement this solution effectively in Python, helping you strengthen your problem-solving abilities and improve your coding skills.

How to Find Uncommon Words from Two Strings in Python

Submitted by razormist on

In this tutorial, we will learn how to program "How to Find Uncommon Words from Two Strings in Python". The objective is to find uncommon words from two strings. This tutorial will guide you step by step through the process of identifying uncommon words between two strings. By the end of this tutorial, you will have a solid understanding of how to implement this solution effectively in Python, helping you strengthen your problem-solving abilities and improve your coding skills.

How to Find Matrix Product in Python

Submitted by razormist on

In this tutorial, we will learn how to program "How to Find Matrix Product in Python". The objective is to find the matrix product. This tutorial will guide you step by step through the process of finding the matrix product. By the end of this tutorial, you will have a solid understanding of how to implement this solution effectively in Python, helping you strengthen your problem-solving abilities and improve your coding skills.

Number Counter App Using Tkinter in Python with Source Code

Submitted by razormist on
The Number Counter App is an interactive desktop application built entirely with Python using the Tkinter library. The application is simple and allows users to manage a number counter. The Number Counter App Using Tkinter features straightforward functionality for counting numbers. This project is an excellent opportunity to reinforce essential programming concepts, making it a valuable exercise

How to Calculate Cumulative Sum with itertools in Python

Submitted by razormist on

In this tutorial, we will learn how to program "How to Calculate Cumulative Sum with itertools in Python". The objective is to calculate the cumulative sum of a sequence using the `itertools` module. This tutorial will guide you step by step through the process of calculating cumulative sums. By the end of this tutorial, you will have a solid understanding of how to implement this solution effectively in Python, helping you strengthen your problem-solving abilities and improve your coding skills.