- Student & Python Enthusiast
- Exploring the intersection of Hardware and Software
Welcome to my personal Python masterclass archive. This repository serves as a comprehensive reference guide for my journey in mastering Python programming—from the absolute basics to advanced concepts like Multiprocessing and GUI development.
Key Feature: The entire source code is deliberately commented out. This allows me to use this single file as a massive reference library without code blocks clashing or executing simultaneously.
- Clone the repo:
git clone https://github.com/YourUsername/Python-Learning-Journey.git
- Open the file: Navigate to the main Python script.
- Activate a Section:
- Find the topic you want to study (e.g.,
# WHILE (LOOP)). - Uncomment (remove the
#) only the lines within that specific block. - Run the script to see the output.
- Re-comment: Once finished, comment the lines back out to keep the file clean for the next session.
This file is organized logically, progressing from syntax basics to complex engineering concepts.
- Variables & Data Types: Strings, Integers, Floats, Booleans.
- Type Casting: Converting between
int,float, andstr. - String Manipulation: Slicing
[start:stop:step], Indexing, and Formatting. - Math Operations: Basic arithmetic and the
mathmodule.
-
Conditional Statements:
if,elif,else. -
Logical Operators:
and,or,not. -
Loops:
-
whileloops (and input validation). -
forloops (range, iterables). -
Nested loops.
-
Flow Control:
break,continue,pass.
- Lists: 1D and 2D lists (Matrices), methods (
append,pop,sort). - Tuples: Immutable collections.
- Sets: Unique collections and set operations (Union, Intersection).
- Dictionaries: Key-Value pairs and Dictionary Comprehensions.
- Defining Functions: Parameters and Return statements.
- Arguments: Keyword arguments,
*args(tuples),**kwargs(dictionaries). - Scope: Local vs. Global variables (
LEGBrule). - Lambda Functions: Anonymous functions.
- Higher-Order Functions:
map(),filter(),reduce(), and assigning functions to variables.
-
Classes & Objects: Attributes, Methods, and
__init__. -
Inheritance:
-
Single Inheritance.
-
Multi-level Inheritance.
-
Multiple Inheritance.
-
Polymorphism: Method Overriding and Duck Typing.
-
Encapsulation & Abstraction: Abstract Classes (
ABC). -
Super Function:
super().
-
File Handling: Reading, Writing, Copying, Moving, and Deleting files using
osandshutil. -
Exception Handling:
try,except,finallyblocks. -
Modules: Importing custom and built-in modules.
-
Concurrency:
-
Threading: Running tasks concurrently (Daemon threads).
-
Multiprocessing: Parallel execution using multiple CPU cores.
-
Walrus Operator:
:=(Assignment Expression).
- Tkinter: Basic window creation, labels, and geometry management.
To run these codes, you need Python installed on your system.
- Download Python: python.org
- IDE Recommended: VS Code, PyCharm, or IDLE.
Last Updated: 2026