All Basic Python practice articles in order. Real programs using variables, operators, conditionals, loops and functions. Each article builds on the theory and adds working code you can run and modify.
-
Python functions practice — 3 programs that show their real power
In the previous article we covered Python functions theory. Now it’s time to write real code. In this article we build three programs from scratch in VS Code where functions aren’t optional, they’re the difference between code that’s readable and maintainable and code that’s a mess. Each program is more modular than the last. Create a folder called…
-
Python loops practice — 3 programs that finally make sense
In the previous article we covered Python loops theory. Now it’s time to write real code. In this article we build three programs from scratch in VS Code using for and while in situations where the choice between them isn’t arbitrary, each program uses the loop that genuinely makes more sense for that problem. Create a folder called…
-
Python conditionals practice — 3 real programs in VS Code
In the previous article we covered Python conditionals theory. Now it’s time to write real code. In this article we build three programs from scratch in VS Code using if, elif and else in real situations: a registration form validator, a customer loyalty discount system and a grade classifier with a menu. Each program starts simple and gains…
-
Python operators practice — 3 real programs in VS Code
In the previous article we covered Python operators theory. Now it’s time to write real code. In this article we build three programs from scratch in VS Code using all the operators you learned: a unit converter, a discount calculator and a full calculator with a menu. Each program goes from simpler to more complete, just like the…
-
Variables and data types in Python — hands-on practice with VS Code
In the previous article we covered the theory behind variables and data types in Python. Now it’s time to put variables and data types in Python practice with real code. We’ll build two programs from scratch in VS Code: a grade average calculator and a BMI calculator, simple but using everything you need to know in real situations….
