|
1 |
| -# beyond-basics-python |
| 1 | +# Beyond Basics: Python |
| 2 | + |
| 3 | +**Beyond Basics: Python** is a curated collection of Python code examples, exercises, and implementations aimed at developers who want to strengthen their grasp of intermediate to advanced Python concepts. This project is ideal for developers familiar with Python syntax and eager to understand _how_ things work behind the scenes β from functions and loops to decorators, object-oriented programming, and external integrations. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## π Key Features & Techniques |
| 8 | + |
| 9 | +This repository uses a range of Python capabilities and standard library tools. Some notable implementations include: |
| 10 | + |
| 11 | +- **Decorators** for caching, debugging, and timing functions ([MDN Explanation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions#method_definitions)) |
| 12 | +- **Object-Oriented Programming (OOP)** concepts including inheritance and method overriding |
| 13 | +- **[Mutable vs Immutable types](./muteableVsimmutable/)** in Python β a deep dive into behavior and memory implications |
| 14 | +- **Python iteration internals** including [iterator protocol](https://docs.python.org/3/library/functions.html#iter) and generator workflows |
| 15 | +- **Function closures and scope handling** ([MDN Scope Reference](https://developer.mozilla.org/en-US/docs/Glossary/Scope)) |
| 16 | +- **API integration** using [`requests`](https://pypi.org/project/requests/) and JSON manipulation |
| 17 | +- **SQLite & MongoDB integration** to simulate lightweight data operations |
| 18 | +- **Basic error handling** and control flow using `try-except` blocks |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## π¦ Libraries and Technologies Used |
| 23 | + |
| 24 | +In addition to the Python standard library, the repo uses: |
| 25 | + |
| 26 | +- [`requests`](https://pypi.org/project/requests/): For handling external API calls |
| 27 | +- [`pymongo`](https://pypi.org/project/pymongo/): To demonstrate MongoDB-based storage and retrieval |
| 28 | +- [`sqlite3`](https://docs.python.org/3/library/sqlite3.html): For simple SQL-based data persistence |
| 29 | +- [`functools`](https://docs.python.org/3/library/functools.html): Used in decorator examples |
| 30 | +- [Open-source system fonts](https://fonts.google.com/) assumed by default; no custom font specified in code |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## π Project Structure |
| 35 | + |
| 36 | +```bash |
| 37 | +beyond-basics-python/ |
| 38 | +βββ 01_basics/ |
| 39 | +βββ 10_Conditionals/ |
| 40 | +βββ 10_functions/ |
| 41 | +βββ 10_loops/ |
| 42 | +βββ Api_handling/ |
| 43 | +βββ Decoraters/ |
| 44 | +βββ Dictionary/ |
| 45 | +βββ Error_handling/ |
| 46 | +βββ List/ |
| 47 | +βββ Numbers/ |
| 48 | +βββ OOP/ |
| 49 | +βββ String/ |
| 50 | +βββ Tuples/ |
| 51 | +βββ bts_in_loops/ |
| 52 | +βββ inner-working/ |
| 53 | +βββ muteableVsimmutable/ |
| 54 | +βββ scope_and_clousers/ |
| 55 | +βββ youtube_manager/ |
| 56 | +``` |
| 57 | + |
| 58 | +### πΈ Directory Highlights |
| 59 | + |
| 60 | +- **[`Api_handling/`](./Api_handling/)** β Demonstrates integration with a public API using `requests` |
| 61 | +- **[`Decoraters/`](./Decoraters/)** β Includes performance and debug decorators |
| 62 | +- **[`youtube_manager/`](./youtube_manager/)** β Uses both SQLite and MongoDB for CRUD-based data persistence |
| 63 | +- **[`bts_in_loops/`](./bts_in_loops/)** β Explains what happens internally during iteration |
| 64 | +- **[`scope_and_clousers/`](./scope_and_clousers/)** β Shows lexical scoping and closures in action |
| 65 | +- **[`inner-working/`](./inner-working/)** β Contains memory management and execution flow examples |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +## π οΈ Author |
| 70 | + |
| 71 | +- **Wasim Akram** β [LinkedIn Profile](https://www.linkedin.com/in/wasim-akram-dev/) |
| 72 | +- **Contact:** [malikwaseemshzad@gmail.com](mailto:malikwaseemshzad@gmail.com) |
0 commit comments