imfaisalmalik / Python-Code-Snippets

Python concepts summary with example code snippets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Code Snippets

This repo contains different code snippets from basic to advanced python concepts.

Python concepts' summary with example code snippets.

Basic (Ongoing)

This folder contains basic level code structures.

  1. 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.

  2. 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

  3. Functions \ This notebook contains info about:
    built-in functions (Python-v3.12 has 71 ), user-defined functions, function args types ()

Intermediate (Upcoming)

This folder contains intermediate level code structures.

  1. Generators
  2. Decorators
  3. Higher-order functions like map(), filter(), and functools.reduce()
  4. Recursion

Advanced (Upcoming)

  1. Python Type Hinting, pydantic
  2. Type Annotations
  3. Named Tuple
  4. Python Enum & dataclasses
  5. **args & **kargs
  6. list comprehensions or generator expressions.
  7. Protocol & Abstract Base Classes (ABC) in python
  8. default_dict

About

Python concepts summary with example code snippets.

License:MIT License


Languages

Language:Jupyter Notebook 100.0%