- Python – Conditional Statements
Introduction Every meaningful program needs to make decisions. Whether you are validating user input, routing requests, or handling edge cases, conditional statements are how your code responds to different situations at runtime. They are the foundation of control flow — the mechanism that…
- Python – Class
In Python, a class is a blueprint for creating objects. Think of it like an architectural blueprint for a house: the blueprint itself is not a house, but it defines exactly how every house built from it will be structured — where the doors go, how many rooms there are, and what materials to use. […]
- Python – Exception Handling
Exception handling is one of the hallmarks of production-ready code. As a senior developer, I can tell you that the difference between a prototype and a system that runs reliably in production often comes down to how well it handles failure. Defensive programming means anticipating what can go…
- Python – Data Types
Variables In Python, every piece of data lives in a variable — a named container that holds a value. Unlike statically typed languages such as Java or C++, Python is dynamically typed. You never declare a type explicitly; Python infers it the moment you assign a value. A variable can even change…
- MySQL Trigger
A MySQL trigger is a stored program that is invoked automatically in response to an event such as INSERT, UPDATE, or DELETE to a particualar table. There are two types of triggers Row-level trigger: a row-level trigger is activated for each row that is inserted, updated, or deleted. Statement-level…