This repo contains different code snippets from basic to advanced python concepts.
Python concepts' summary with example code snippets.
This folder contains basic level code structures.
-
PyBasics-1.ipynb
This notebook contains info about:
Python 35 Keywords, Python Identifiers(Variables, Constants, Literals), Python Data Types, Type Casting, Python Operators, Python Namespace and Variable Scope. -
PyBasics-2.ipynb
This notebook contains info about:
Python if...else, for Loop, for loop with else, while Loop, while loop with else, break Statement, continue and pass Statement -
Functions \ This notebook contains info about:
built-in functions (Python-v3.12 has71
), user-defined functions, function args types ()
This folder contains intermediate level code structures.
- Generators
- Decorators
- Higher-order functions like map(), filter(), and functools.reduce()
- Recursion
- Python Type Hinting, pydantic
- Type Annotations
- Named Tuple
- Python Enum & dataclasses
- **args & **kargs
- list comprehensions or generator expressions.
- Protocol & Abstract Base Classes (ABC) in python
- default_dict