A comprehensive collection of Python scripts covering everything from basics to advanced topics like concurrency and object-oriented programming.
- #0 How Python Runs Code
- #1 Hello World
- #2 Variables
- #3 String Methods
- #4 Type Casting
- #5 User Input
- #6 Number Methods
- #7 String Slicing
- #8 If-Elif-Else
- #9 Logical Operators
- #10 While Loops
- #11 For Loops
- #12 Nested Loops
- #13 Loop Control Statements
- #31 OOP Basics
- #32 Class Variables
- #33 Single Inheritance
- #34 Multilevel Inheritance
- #35 Multiple Inheritance
- #36 Method Overriding
- #37 Method Chaining
- #38 Super Function
- #39 Abstract Classes
- #40 Objects as Arguments
- #41 Duck Typing
- #42 Walrus Operator
- #43 Functions to Variables
- #44 Higher Order Functions
- #45 Lambda Functions
- #46 Sorting
- #47 Map
- #48 Filter
- #49 Reduce
- #50 List Comprehensions
- #51 Dictionary Comprehensions
- #52 Zip
- #53 if name == 'main'
- #54 Time Module
- #55 Threading
- #56 Daemon Threads
- #57 Multiprocessing
- #62 Asyncio
- Python 3.6 or higher installed.
To run any script, use the following command in your terminal:
python3 "#1_hello.py"Note: Some scripts might require user input or specific environment setups (like file handling scripts).
- Clean Code: Updated to use modern Python f-strings and best practices.
- Portability: Fixed hardcoded paths for easier execution across different machines.
- Structured Learning: Files are numbered to guide you from basic concepts to complex topics.
[Ishtiaq Mahmood]