# Python Tutorials > If you're coming from one of my Python tutorials, you'll find the code here. This repo is quite useless otherwise. :) > ![fimg-python-tutorials](https://i.imgur.com/4KchgGD.png) | Topic | Link to Code | Link to Tutorial| |-------|--------------|-----------------| |Custom Python Decorator Patterns |[Code](https://github.com/balapriyac/python-basics/tree/main/decorator-patterns)|[Custom Python Decorator Patterns Worth Copy-Pasting Forever](https://www.kdnuggets.com/custom-python-decorator-patterns-worth-copy-pasting-forever)| | Makefiles for Python Projects | [Code](https://github.com/balapriyac/python-basics/tree/main/makefiles)|[The Case for Makefiles in Python Projects (And How to Get Started)](https://www.kdnuggets.com/the-case-for-makefiles-in-python-projects-and-how-to-get-started)| | Python Math & Stats One-liners | [Code](https://github.com/balapriyac/python-basics/blob/main/useful-python-one-liners/python_math_n_stats_one_liners.ipynb) | [10 Python Math & Statistical Analysis One-Liners](https://www.kdnuggets.com/10-python-math-statistical-analysis-one-liners)| | Python JSON One-liners | [Code](https://github.com/balapriyac/python-basics/blob/main/useful-python-one-liners/python_json_one_liners.ipynb)|[10 Python One-Liners for JSON Parsing and Processing](https://www.kdnuggets.com/10-python-one-liners-for-json-parsing-and-processing)| | Optimize Python Code | [Code](https://github.com/balapriyac/python-basics/tree/main/optimize-python-code) | [How to Optimize Your Python Code Even If You’re a Beginner](https://www.kdnuggets.com/how-to-optimize-your-python-code-even-if-youre-a-beginner)| | functools & itertools| [Code](https://github.com/balapriyac/python-basics/tree/main/functools-n-itertools)|[Python functools & itertools: 7 Super Handy Tools for Smarter Code](https://www.kdnuggets.com/python-functools-itertools-7-super-handy-tools-for-smarter-code)| | Uncommon Uses of Common Standard Library Functions | [Code](https://github.com/balapriyac/python-basics/tree/main/useful-python-functions/uncommon-uses-of-common-functions)|[Uncommon Uses of Common Python Standard Library Functions](https://www.kdnuggets.com/uncommon-uses-of-common-python-standard-library-functions)| | Clean Python Crash Course | [Code](https://github.com/balapriyac/python-basics/tree/main/clean-python)|[Stop Writing Messy Python: A Clean Code Crash Course](https://www.kdnuggets.com/stop-writing-messy-python-a-clean-code-crash-course)| | Writing Readable Python Functions|[Code](https://github.com/balapriyac/python-basics/tree/main/readable-python-functions)|[The Art of Writing Readable Python Functions](https://www.kdnuggets.com/the-art-of-writing-readable-python-functions)| | Efficient Python (for Beginners) | [Code](https://github.com/balapriyac/python-basics/blob/main/efficient-python-for-beginners/main.py) | [How to Write Efficient Python Code Even If You’re a Beginner](https://www.kdnuggets.com/how-to-write-efficient-python-code-even-if-youre-a-beginner)| | Python Data Structures| [Code](https://github.com/balapriyac/python-basics/tree/main/data-structures) | [Python Data Structures Every Programmer Should Know](https://www.kdnuggets.com/python-data-structures-every-programmer-should-know)| |Commonly Misused Python Functions | [Code](https://github.com/balapriyac/python-basics/tree/main/misused-python-functions) | [7 Python Functions You’re Probably Misusing (And Don’t Realize It)](https://www.kdnuggets.com/7-python-functions-youre-probably-misusing-and-dont-realize-it)| | Intro to Golang | [Code](https://github.com/balapriyac/python-basics/tree/main/go-intro) | [A Gentle Introduction to Go for Python Programmers](https://www.kdnuggets.com/a-gentle-introduction-to-go-for-python-programmers)| | Big O Complexity | [Code](https://github.com/balapriyac/python-basics/tree/main/big-o-examples)|[Big O Complexity Cheat Sheet for Coding Interviews](https://www.kdnuggets.com/big-o-complexity-cheat-sheet-coding-interviews)| |Python Tips (for Data Efficiency and Speed)|[Code](https://github.com/balapriyac/python-basics/tree/main/better-python)|[5 Python Tips for Data Efficiency and Speed](https://www.kdnuggets.com/5-python-tips-for-data-efficiency-and-speed)| | Automated Data Cleaning Pipeline| [Code](https://github.com/balapriyac/python-basics/blob/main/automate-data-cleaning/useful_snippets.py) | [Creating Automated Data Cleaning Pipelines Using Python and Pandas](https://www.kdnuggets.com/creating-automated-data-cleaning-pipelines-using-python-and-pandas)| |Automate Data Cleaning in 5 Steps| [Code](https://github.com/balapriyac/python-basics/blob/main/automate-data-cleaning/automate_5_steps.py)|[How to Fully Automate Data Cleaning with Python in 5 Steps](https://www.kdnuggets.com/how-to-fully-automate-data-cleaning-with-python-in-5-steps)| |Advanced Error Handling|[Code](https://github.com/balapriyac/python-basics/tree/main/error-handling)|[Advanced Error Handling in Python: Beyond Try-Except](https://www.kdnuggets.com/advanced-error-handling-in-python-beyond-try-except)| |`any()` and `all()` Functions | [Code](https://github.com/balapriyac/python-basics/tree/main/any-all)|[Python `any()` and `all()` Functions – Explained with Examples](https://www.freecodecamp.org/news/python-any-and-all-functions-explained-with-examples/)| | Python Lists 101 | [Code](https://github.com/balapriyac/python-basics/tree/main/python-lists) | [Lists in Python – A Comprehensive Guide](https://www.freecodecamp.org/news/lists-in-python-comprehensive-guide/)| | Update Python Dictionary | [Code](https://github.com/balapriyac/python-basics/blob/main/built-in-data-structs/update-python-dicts/update_dict.py) | [How to Update a Python Dictionary](https://www.kdnuggets.com/2023/02/update-python-dictionary.html)| | Generators 101 | [Code](https://github.com/balapriyac/python-basics/tree/main/generators-101) | [Getting Started with Python Generators](https://www.kdnuggets.com/2023/02/getting-started-python-generators.html)| | Find set Difference | [Code](https://github.com/balapriyac/python-basics/blob/main/built-in-data-structs/set-diff/set-difference.py)|[How to Find Set Difference in Python](https://www.kdnuggets.com/2023/03/find-set-difference-python.html)| |Convert Bytes to String in Python| [Code](https://github.com/balapriyac/python-basics/tree/main/bytes2str) | [Convert Bytes to String in Python: A Tutorial for Beginners](https://www.kdnuggets.com/convert-bytes-to-string-in-python-a-tutorial-for-beginners)| |RegEx for Data Cleaning| [Code](https://github.com/balapriyac/python-basics/tree/main/regex)|[5 Tips for Using Regular Expressions in Data Cleaning](https://www.kdnuggets.com/5-tips-for-using-regular-expressions-in-data-cleaning)| | Data Cleaning One-Liners | [Code](https://github.com/balapriyac/python-basics/tree/main/data-cleaning) | [10 Useful Python One-Liners for Data Cleaning](https://www.kdnuggets.com/10-useful-python-one-liners-for-data-cleaning)| | Unit Testing (Python Functions) | [Code](https://github.com/balapriyac/python-basics/tree/main/unit-testing/functions)| [How to Write Unit Tests for Python Functions](https://www.freecodecamp.org/news/how-to-write-unit-tests-for-python-functions/)| | Unit Testing (Instance Methods) | [Code](https://github.com/balapriyac/python-basics/tree/main/unit-testing/classes)| [How to Write Unit Tests for Instance Methods in Python](https://www.freecodecamp.org/news/how-to-write-unit-tests-for-instance-methods-in-python/)| |Tips for Handling Large Datasets| [Code](https://github.com/balapriyac/python-basics/tree/main/handle-large-datasets) | [Tips for Handling Large Datasets in Python](https://www.kdnuggets.com/tips-handling-large-datasets-python)| |Caching in Python| [Code](https://github.com/balapriyac/python-basics/tree/main/caching)| [How To Speed Up Python Code with Caching](https://www.kdnuggets.com/how-to-speed-up-python-code-with-caching)| | Creating Custom Exceptions|[Code](https://github.com/balapriyac/python-basics/tree/main/custom-exceptions)|[How (and Why) To Create Custom Exceptions in Python](https://www.kdnuggets.com/how-and-why-to-create-custom-exceptions-in-python)| | Coding Interview Tips | [Code](https://github.com/balapriyac/python-basics/tree/main/coding-interview-tips) | [7 Must-Know Python Tips for Coding Interviews](https://www.kdnuggets.com/2023/03/7-mustknow-python-tips-coding-interviews.html)| | Intro to Indexes in SQL | [Code](https://github.com/balapriyac/python-basics/tree/main/sql-index)|[How To Speed Up SQL Queries Using Indexes [Python Edition]](https://www.kdnuggets.com/2023/08/speed-sql-queries-indexes-python-edition.html)| |Writing Better Python Functions|[Code](https://github.com/balapriyac/python-basics/tree/main/write-better-funcs)|[5 Tips for Writing Better Python Functions](https://www.kdnuggets.com/5-tips-for-writing-better-python-functions)| |Function Arguments|[Code](https://github.com/balapriyac/python-basics/tree/main/function-args)|[Python Function Arguments: A Definitive Guide](https://www.kdnuggets.com/2023/02/python-function-arguments-definitive-guide.html)| |Partial Functions|[Code](https://github.com/balapriyac/python-basics/tree/main/partial-functions)|[Partial Functions in Python: A Guide for Developers](https://www.kdnuggets.com/partial-functions-in-python-a-guide-for-developers)| |Useful Python Functions| [Code](https://github.com/balapriyac/python-basics/tree/main/useful-python-functions)|[Lesser-Known Python Functions That Are Super Useful](https://www.kdnuggets.com/lesser-known-python-functions-that-are-super-useful)| | Docker for Python Developers | [Code](https://github.com/balapriyac/python-basics/tree/main/intro-to-docker) | [A Gentle Introduction to Docker for Python Developers](https://www.kdnuggets.com/a-gentle-introduction-to-docker-for-python-developers)| |For-Else Loop Construct| [Code](https://github.com/balapriyac/python-basics/tree/main/for-else) | [How Does Python's For-Else Loop Construct Work?](https://www.freecodecamp.org/news/for-else-loop-in-python/)| |SQLite Tutorial| [Code](https://github.com/balapriyac/python-basics/tree/main/sqlite-tut)|[A Guide to Working with SQLite Databases in Python](https://www.kdnuggets.com/a-guide-to-working-with-sqlite-databases-in-python)| |Psycopg2 Tutorial| [Code](https://github.com/balapriyac/psycopg2-tutorial) | [PostgreSQL in Python Using Psycopg2](https://earthly.dev/blog/psycopg2-postgres-python/)| |Handling Key Errors|[Code](https://github.com/balapriyac/python-basics/tree/main/keyerrors) |[How to Handle KeyErrors in Python – with Code Examples](https://www.freecodecamp.org/news/how-to-handle-keyerror-exceptions-in-python/)| |Common Python Gotchas!| [Code](https://github.com/balapriyac/python-basics/tree/main/common-gotchas) | [5 Common Python Gotchas (And How To Avoid Them)](https://www.kdnuggets.com/5-common-python-gotchas-and-how-to-avoid-them)| | Python Oddities | [Code](https://github.com/balapriyac/python-basics/blob/main/common-gotchas/python_oddities.ipynb) | [Python Oddities That Might Surprise You](https://www.kdnuggets.com/python-oddities-might-surprise-you)| |Custom Context Managers in Python| [Code](https://github.com/balapriyac/python-basics/tree/main/custom_context_manager)|[How To Create Custom Context Managers in Python](https://www.kdnuggets.com/how-to-create-custom-context-managers-in-python)| |Convert Python Dict to JSON |[Code](https://github.com/balapriyac/python-basics/tree/main/dict-to-json) | [Convert Python Dict to JSON: A Tutorial for Beginners](https://www.kdnuggets.com/convert-python-dict-to-json-a-tutorial-for-beginners)| |Building Enumerations in Python |[Code](https://github.com/balapriyac/python-basics/tree/main/enums) | [Python Enum: How To Build Enumerations in Python](https://www.kdnuggets.com/python-enum-how-to-build-enumerations-in-python) |Natural Sorting (Install `natsort` with pip) | [Code](https://github.com/balapriyac/python-basics/tree/main/natural-sorting) | [Exploring Natural Sorting in Python](https://www.kdnuggets.com/exploring-natural-sorting-in-python) |Pydantic Basics|[Code](https://github.com/balapriyac/python-basics/tree/main/pydantic-basics) | [Pydantic Tutorial: Data Validation in Python Made Simple](https://www.kdnuggets.com/pydantic-tutorial-data-validation-in-python-made-simple)| |Pathlib Tutorial|[Code](https://github.com/balapriyac/python-basics/tree/main/pathlib-tutorial)|[How To Navigate the Filesystem with Python’s Pathlib](https://www.kdnuggets.com/how-to-navigate-the-filesystem-with-pythons-pathlib)| |Pathlib File Management|[Code](https://github.com/balapriyac/python-basics/tree/main/pathlib-examples)|[Organize, Search, and Back Up Files with Python’s Pathlib](https://www.kdnuggets.com/organize-search-and-back-up-files-with-pythons-pathlib)| |Walrus Operator|[Code](https://github.com/balapriyac/python-basics/tree/main/walrus-operator)|[How (Not) To Use Python’s Walrus Operator](https://www.kdnuggets.com/how-not-to-use-pythons-walrus-operator)| |Tracing Memory Allocation| [Code](https://github.com/balapriyac/python-basics/tree/main/tracemalloc-tutorial)|[How To Trace Memory Allocation in Python](https://www.kdnuggets.com/how-to-trace-memory-allocation-in-python)| |Merge Python Dicts|[Code](https://github.com/balapriyac/python-basics/blob/main/merge-dict/main.py)|[3 Simple Ways to Merge Python Dictionaries](https://www.kdnuggets.com/3-simple-ways-to-merge-python-dictionaries)| | Unit Testing w/ Pytest| [Code](https://github.com/balapriyac/python-basics/tree/main/pytest) | [Beginner’s Guide to Unit Testing Python Code with Pytest](https://www.kdnuggets.com/beginners-guide-unit-testing-python-code-pytest)| | String Manipulation One-Liners| [Code](https://github.com/balapriyac/python-basics/blob/main/string-manipulation/string_manipulation_one_liners.ipynb) | [15 Useful Python One-Liners for String Manipulation](https://www.kdnuggets.com/15-useful-python-one-liners-string-manipulation)| | Useful Decorators | [Code](https://github.com/balapriyac/python-basics/tree/main/useful-decorators) | [7 Powerful Python Decorators to Level Up Your Coding Game](https://www.kdnuggets.com/7-powerful-python-decorators-to-level-up-your-coding-game)| | Useless Python Functions | [Code](https://github.com/balapriyac/python-basics/blob/main/useful-python-functions/useless_python_functions.ipynb) | [7 “Useless” Python Standard Library Functions You Should Know](https://www.kdnuggets.com/7-useless-python-standard-library-functions-you-should-know)| | Timedelta (work w/ time intervals) | [Code](https://github.com/balapriyac/python-basics/tree/main/timedelta) | [How to Use timedelta Objects in Python to Work with Dates](https://www.freecodecamp.org/news/how-to-use-timedelta-objects-in-python/)| |Logging in Python | [Code](https://github.com/balapriyac/python-basics/tree/main/logging)| [Logging in Python: A Developer’s Guide](https://blog.sentry.io/logging-in-python-a-developers-guide/)| |Python for Data Science 101 | [Code](https://github.com/balapriyac/python-basics/tree/main/python-for-beginners)| [Python for Data Science (Free 7-Day Mini-Course) ](https://www.kdnuggets.com/python-for-data-science-free-7-day-mini-course)| | Working with Env Vars| [Code](https://github.com/balapriyac/python-basics/tree/main/config-management-basics/env-vars)|[How to Work with Environment Variables in Python](https://www.freecodecamp.org/news/how-to-work-with-environment-variables-in-python/)| | Parsing INI Config Files | [Code](https://github.com/balapriyac/python-basics/tree/main/config-management-basics/parsing-ini-files)|[How to Parse INI Config Files in Python with Configparser](https://www.freecodecamp.org/news/how-to-parse-ini-config-files-in-python-with-configparser/)| | Parsing TOML Files | [Code](https://github.com/balapriyac/python-basics/tree/main/config-management-basics/parsing-toml-files)|[How to Work with TOML Files in Python](https://www.freecodecamp.org/news/how-to-work-with-toml-files-in-python/)| | Pydantic for Developers| [Code](https://github.com/balapriyac/python-basics/tree/main/pydantic-for-python-devs)|[The Complete Guide to Pydantic for Python Developers](https://machinelearningmastery.com/the-complete-guide-to-pydantic-for-python-developers/)| | Parsing JSON | [Code](https://github.com/balapriyac/python-basics/tree/main/parsing-json)|[How to Parse JSON in Python – A Complete Guide With Examples](https://www.freecodecamp.org/news/how-to-parse-json-in-python-with-examples/)| | Parsing XML | [Code](https://github.com/balapriyac/python-basics/tree/main/parse-xml)|[How to Parse XML in Python Without Using External Libraries](https://www.freecodecamp.org/news/how-to-parse-xml-in-python-without-using-external-libraries/)| |Writing Readable Python Functions|[Code](https://github.com/balapriyac/python-basics/blob/main/readable-python-functions/write_better_functions.ipynb)|[How to Write Readable Python Functions Even If You’re a Beginner](https://www.kdnuggets.com/how-to-write-readable-python-functions-even-if-youre-a-beginner)| |Working with YAML| [Code](https://github.com/balapriyac/python-basics/tree/main/config-management-basics/working-with-yaml)|[How to Work with YAML in Python – A Guide with Examples](https://www.freecodecamp.org/news/how-to-work-with-yaml-in-python-a-guide-with-examples/)| |Writing Better Data Classes|[Code](https://github.com/balapriyac/python-basics/tree/main/write-efficient-data-classes)|[How to Write Efficient Python Data Classes](https://www.kdnuggets.com/how-to-write-efficient-python-data-classes)| | Secure Hashing | [Code](https://github.com/balapriyac/python-basics/tree/main/secure-hashing)|[How to Perform Secure Hashing Using Python's hashlib Module](https://www.freecodecamp.org/news/how-to-perform-secure-hashing-using-pythons-hashlib-module/)| | Handle Large Datasets | [Code](https://github.com/balapriyac/python-basics/tree/main/working-with-large-datasets)|[How to Handle Large Datasets in Python Even If You’re a Beginner](https://www.kdnuggets.com/how-to-handle-large-datasets-in-python-even-if-youre-a-beginner)| | The Complete Guide to Logging| [Code](https://github.com/balapriyac/python-basics/tree/main/logging-for-python-devs)|[The Complete Guide to Logging for Python Developers](https://www.kdnuggets.com/the-complete-guide-to-logging-for-python-developers)| | Working with the ORC File Format | [Code](https://github.com/balapriyac/python-basics/tree/main/working-with-orc)|[How to Work with the ORC File Format in Python – A Guide with Examples](https://www.freecodecamp.org/news/how-to-work-with-the-orc-file-format-in-python-a-guide-with-examples/)| | Memory Management | [Code](https://github.com/balapriyac/python-basics/tree/main/memory-management)|[Everything You Need to Know About How Python Manages Memory](https://machinelearningmastery.com/everything-you-need-to-know-about-how-python-manages-memory/)| | DIY JSON Processing Functions | [Code](https://github.com/balapriyac/python-basics/tree/main/DIY-python-funcs/json-processing)|[5 Useful DIY Python Functions for JSON Parsing and Processing](https://www.kdnuggets.com/5-useful-diy-python-functions-for-json-parsing-and-processing)| | DIY Date & Time Parsing Functions|[Code](https://github.com/balapriyac/python-basics/tree/main/DIY-python-funcs/datetime-parsing)|[5 Useful DIY Python Functions for Parsing Dates and Times](https://www.kdnuggets.com/5-useful-diy-python-functions-for-parsing-dates-and-times)| | Singleton Pattern | [Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/singleton)|[How to Build a Singleton in Python (and Why You Probably Shouldn't)](https://www.freecodecamp.org/news/how-to-build-a-singleton-in-python-and-why-you-probably-shouldnt/)| | Builder Pattern |[Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/builder)|[How to Use the Builder Pattern in Python – A Practical Guide for Developers](https://www.freecodecamp.org/news/how-to-use-the-builder-pattern-in-python-a-practical-guide-for-devs/)| | Factory Pattern | [Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/factory)|[How to Use the Factory Pattern in Python - A Practical Guide](https://www.freecodecamp.org/news/how-to-use-the-factory-pattern-in-python-a-practical-guide/)| | Observer Pattern | [Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/observer)|[How to Implement the Observer Pattern in Python](https://www.freecodecamp.org/news/how-to-implement-the-observer-pattern-in-python/)| | Strategy Pattern | [Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/strategy)|[How to Implement the Strategy Pattern in Python](https://www.freecodecamp.org/news/how-to-implement-the-strategy-pattern-in-python/)| | Command Pattern | [Code](https://github.com/balapriyac/python-basics/tree/main/design-patterns/command)|[How to Use the Command Pattern in Python](https://www.freecodecamp.org/news/how-to-use-the-command-pattern-in-python/)| | Building a Simple MCP Server | [Code](https://github.com/balapriyac/python-basics/tree/main/building-a-simple-mcp-server)|[Building a Simple MCP Server in Python](https://machinelearningmastery.com/building-a-simple-mcp-server-in-python/)| | Working with Parquet Files | [Code](https://github.com/balapriyac/python-basics/tree/main/parquet)|[How to Work with Parquet Files in Python – A Guide with Examples](https://dev.to/balapriya/how-to-work-with-parquet-files-in-python-a-guide-with-examples-16l6)| | Recursion for Beginners | [Code](https://github.com/balapriyac/python-basics/tree/main/recursion)|[Recursion in Python – A Practical Introduction for Beginners](https://www.freecodecamp.org/news/recursion-in-python-intro-for-beginners/)| | Descriptive Stats with Python | [Code](https://github.com/balapriyac/python-basics/blob/main/stats-with-python/stats_with_python_1.ipynb)|[Descriptive Statistics with Python for Beginner Data Scientists](https://dev.to/balapriya/descriptive-statistics-with-python-for-beginner-data-scientists-1001)| | Speed Up Slow Code | [Code](https://github.com/balapriyac/python-basics/tree/main/speed-up-slow-python-code)|[How to Speed Up Slow Python Code Even If You’re a Beginner](https://www.kdnuggets.com/how-to-speed-up-slow-python-code-even-if-youre-a-beginner)| | DIY Error Handling Functions | [Code](https://github.com/balapriyac/python-basics/tree/main/DIY-python-funcs/error_handling)|[5 Useful DIY Python Functions for Error Handling](https://www.kdnuggets.com/5-useful-diy-python-functions-for-error-handling)| | Batch vs Streaming Pipelines | [Code](https://github.com/balapriyac/python-basics/tree/main/batch-vs-streaming-pipelines)|[Efficient Data Processing in Python: Batch vs Streaming Pipelines Explained](https://www.freecodecamp.org/news/efficient-data-processing-in-python-batch-vs-streaming-pipelines/)|