Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

sh-navid/Archive.Learn.Python

Repository files navigation

Python Instructor

  • Disclaimer: The content of this repository is only for testing and training and is provided at the discretion of the author; So it may not be suitable for production or other conditions.
  • Install and Run Python.
  • Examples
  • Homeworks

Headings

  • Introduction

  • Syntax

  • Variables

  • String

  • Function

  • Random

    • random(), randint(), shuffle(), choice()
  • Operators
    - [Operators](/lessons/python/concepts/operators)
    1. [Arithmetic](/lessons/python/concepts/operators/arithmetic-operators.py) `+ -` ,...
    2. [Assignment](/lessons/python/concepts/operators/assignment-operators.py) `= += -=` ,...
    3. [Comparison](/lessons/python/concepts/operators/comparison-operators.py) `== != >=` ,...
    4. [Logical](/lessons/python/concepts/operators/logical-operators.py) `and, or, not`
    5. [Identity](/lessons/python/concepts/operators/identity-operators.py) `is, is not`
    6. [Membership](/lessons/python/concepts/operators/membership-operators.py) `in, not in`
    7. [Bitwise](/lessons/python/concepts/operators/bitwise-operators.py) `& | ^ ~ << >>`
    </details>
    
  • Debugging (break point)

  • List
    - Ordered, Changeable, Indexed, Allow Duplicate
    - [`access, assign, iterate, list(), .append(), .insert(), .remove(), del, .pop(), .copy(), .extend(), .clear(), len(), .count(), slice, join, unpack, in, .index(), .reverse(), .sort()`](/lessons/python/concepts/collections/list-access.py)
    </details>
    
  • Tuple
    - Ordered, Unchangeable, Indexed, Allow Duplicate
    - Tuples are **unchangeable**, or **immutable** so you cannot add or remove items from it
    - [`access, tuple with one item, tuple(), iterate, del completely, len(), .count(), slice, join, unpack, in, .index()`](/lessons/python/concepts/collections/tuple-access.py)
    </details>
    
  • Set
    - Unordered, Unchangeable (By index, But you can add/remove), Unindexed, No Duplicate
    - [`access, len(), set(), in, .add(), .update(), (.remove(), .discard(), .pop(), del), .copy(), .clear(), (.union(), intersection, difference, symmetric_difference), (disjoint, subset, superset)`](/lessons/python/concepts/collections/set-access.py)
    - [`frozenset()`](/lessons/python/concepts/collections/set-frozen.py)
    </details>
    
  • Dictionary
    - Ordered, Changeable, Key Value, No Duplicate
    - [`access, assign, .update(), dict(), .keys(), .values(), .items(), zip(), len(), .pop(), .popitem(), del, .clear(), .copy(), .fromkeys(), .setdefault())`](/lessons/python/concepts/collections/dict-access.py)
    </details>
    
  • DataTypes
    - Numbers: [`Integer, Float, Complex`](/lessons/python/concepts/data-types/data-type-number.py)
    - Sequence: [`String`](/lessons/python/concepts/data-types/data-type-string.py), [`Range`](/lessons/python/concepts/data-types/data-type-range.py), [`List`](/lessons/python/concepts/collections/list-access.py), [`Tuple`](/lessons/python/concepts/collections/tuple-access.py), `Bytes`, `ByteArray`
    - Set: [`Set`](/lessons/python/concepts/collections/set-access.py), [`FrozenSet`](/lessons/python/concepts/collections/set-frozen.py)
    - Map: [`Dictionary`](/lessons/python/concepts/collections/dict-access.py)
    - Nothing: `None`
    - Boolean: [`Boolean`](/lessons/python/concepts/boolean/boolean-concept.py)
    - Binary: [`Bytes, ByteArray, MemoryView`](/lessons/python/concepts/data-types/data-type-bytes.py)
    - `bytes` is immutable; however `bytearray` is mutable
    </details>
    
  • Module

  • Conversion, TypeCasting

  • Input

  • Keywords
    - [if, elif, else](/lessons/python/concepts/keywords/keywords-if-elif.py)
    - [for](/lessons/python/concepts/keywords/keywords-for.py)
    - [while, continue, break](/lessons/python/concepts/keywords/keywords-while.py)
    - [try, except, finally](/lessons/python/concepts/keywords/keywords-try-except.py)
    - [and, or, not, in, is](/lessons/python/concepts/keywords/keywords-and-or-not-in-is.py)
    - [import, from, as](/lessons/python/concepts/keywords/keywords-import.py)
    - [class, def, lambda, pass, return, del](/lessons/python/concepts/keywords/keywords-class-def-lambda-pass-ret-del.py)
    - [global, nonlocal](/lessons/python/concepts/keywords/keywords-scope.py)
    - [assert](/lessons/python/concepts/keywords/keywords-assert.py) <sub>[Optonal]</sub>, [raise](/lessons/python/concepts/keywords/keywords-raise.py) <sub>[Optonal]</sub>
    - [with](/lessons/python/concepts/keywords/keywords-with.py) <sub>[Optonal]</sub>
    - [yield](/lessons/python/concepts/keywords/keywords-yield.py) <sub>[Optonal]</sub>
    </details>
    
  • Comperhension

  • Scope, Globals, Locals

  • Read File, Write File, Pickle

  • Math

  • Date, Time

  • Function, Method, Lambda

  • OOP

    • Class, Object
    • Constructor
    • ToString, Representation
    • Methods
      • Object Method
      • Static Method
      • Class Method
    • Inheritance
    • Override
    • Overload
    • Getter, Setter ???
    • Enum
  • Eval, Exec

  • *argv, **kwargs

  • Sys

  • OS

  • Assertion

  • Generator


Optional

  1. VENV
  2. Exception
    1. Custom Exception
    2. Types of Errors
  3. Meta
    1. Meta Classes
    2. Meta Programming
  4. Iterator
  5. Closure
  6. Descriptor
  7. Context Manager
  8. Regular Expression
  9. Socket client, server
  10. Data
    1. SQL, NoSQL, ORM (SQLAlchemy)
    2. JSON, CSV, XML, OWL, ...
  11. Serialization, Deserialization

Advanced

  1. Dependency Injection
  2. Inversion of Control
  3. Message Passing
  4. Multi Threading
  5. Multi Processing
  6. Semaphore, Lock, Mutex

Modules, Packages, Libs, ...

More