These are set of codes intended to demostrate the most commonly used syntax usage with codes. They cover the most common use + implementation cases for most concepts and built in functionality. If you have more to add please do send a pull request.
- Basic Installation Steps
- Using Python with a file
- Single and MultiLine Comments
- Variables: Using None (Null value) and Alternative to Variable declaration without value
- FlowControl:
- FlowControl:
- FlowControl:
- FlowControl: for loops
- FlowControl: While loops
- FlowControl: Infinite While loops and implications
- FlowControl: While loops and using not Boolean Operator
- FlowControl: break, continue keyword
- Functions: Usage
- Functions: Usage of Arguments, Keyword Arguments, and Default values to Arguments
- Functions: Multiple return values, Single line function expressions
- Scope: Local Variables and Functions/Classes
- Scope: Global Variables and Functions/Classes
- Scope: Global Local Variables Usage
- Scope: Using Global keyword and Global Scope
- Scope: Common Scope Rules
- Error Handling: try...except block
- Error Handling: try...except ErrorName block
- Data Type: Data Types
- Data Type: Complex Numbers
- Data Type: Bytes Array and Memory View
- Data Type: Type Conversion
- Functions: Lambda Functions
- Functions: Inbuilt Functions and Lambda usage
- del keyword to Delete objects/Variables
- Context Management and with keyword usage
- Constants in Python
- Constants: Support file
- Excercises: Basics
- Operators: Assignment Operators Usage
- Operators: Membership Operators Usage
- Operators: Arithmatic Operators Usage
- Operators: Augmented Assignment Operators Usage
- Operators: Augmented Assignment Operators Usage
- Operators: Comparision Operators Usage
- Operators: Identity Comparision Operators Usage
- Operators: Boolean / Logical Operators Usage
- Destructuring: Multiple Assignments (Lists, Tuples, Dictionaries)
- Destructuring: Rules and Errors
- Syntax/Lexical Grammer, Data Types: Reassignation, not modification
- Data Types: Lists
- Data Types: List methods - remove
- Data Types: Method usage apply on wrong types
- Data Types: Method usage apply on wrong types 2
- Data Types: Method remove - ValueErrors
- Data Types: Method - sort
- Data Types: Method - sort (alphabets)
- Data Types: sort - TypeError
- Data Types, Syntax/Lexical Grammer: Indentation Errors
- Data Types: List reference
- Data Types: Passing lists as a reference as arguments into functions
- Data Types: List related error
- Data Types: List - copy
- Data Types: List - deepcopy
- Data Types: List Manipulation
- Data Types: List loops
- Data Types: Looping lists
- Data Types: Method - index
- Data Types: Methods
- Data Types: Method - index related Error
- Data Types: Method - Errors
- Data Types: Method - append
- Data Types: Method - insert
- Data Types: Tuples
- Data Types: Tuples - Error while trying to mutate or modify
- Data Types: Tuples as data type for multiple return values from functions
- Data Types: Strings behaviour as lists
- Data Types: Strings - Immutability
- Data Types: Named Tuple
- Data Types: Strings
- Data Types: String Methods
- Data Types: Strings - Strings as lists
- Data Types: Strings - Immutability
- Data Types: Integers
- Data Types: Integers Methods
- Data Types: Complex
- Data Types: Complex Methods
- Data Types: Dictionaries
- Data Types: Method - setdefault usage
- Data Types: setdefault usage 2
- Data Types: Dictionaries KeyErrors
- Data Types: Dictionaries Method - keys
- Data Types: Dictionaries Method - values
- Data Types: Dictionaries Method - items
- Data Types: Dictionaries - Mutiple assignation / Destructuring
- Data Types: Dictionaries to True Lists
- Data Types: Dictionaries - get existence of key
- Data Types: Dictionaries Method - get existence of key
- Data Types: Dictionaries - Create using single line for loops
- Data Types: Sets
- Data Types: Sets manipulation and Methods
- Data Types: FrozenSets
- Data Types: FrozenSets Methods
- Data Types: Array (not inbuilt type)
- Data Types: Array Methods
- Data Types: Time (not inbuilt type)
- Data Types: Other Inbuilt Data Types
- Data Types: Other Data Types - Modules
- Data Types: Data Types Based on use cases
- Classes and OOPs: Classes Intro
- Classes and OOPs: Constructor __init__ usage
- Classes and OOPs: Class Object Life Cycle
- Classes and OOPs: Python Context - property, attribute difference
- Classes and OOPs: Class Descriptors gets, sets
- Classes and OOPs: Constructor __init__ usage
- Classes and OOPs: Inheritance, isinstance, issubclass
- Classes and OOPs: Polymorphism Concept
- Classes and OOPs: Multiple Inheritance
- Classes and OOPs: Multiple Inheritance - super() usage
- Classes and OOPs: Multiple Inheritance Parent classes instantiation
- Classes and OOPs: Private attribute access
- Classes and OOPs: Overwriting, Overiding, Overloading
- Classes and OOPs: Classes as Objects
- Classes and OOPs: Iteration of objects
- Classes and OOPs: @dataclass usage for interfaces mock
- Classes and OOPs: Static Classes and Methods
- Classes and OOPs: Abstract Classes
- Classes and OOPs: Comparison Magic Methods
- Classes and OOPs: Numeric, Unary Magic Methods
- Classes and OOPs: Numeric, Normal Magic Methods
- Classes and OOPs: Numeric, Reflected Arithmatic Magic Methods
- Classes and OOPs: Type Conversion Magic Methods
- Classes and OOPs: Attribute, Access Magic Methods
- Classes and OOPs: Representation Magic Methods
- Classes and OOPs: Reflection Magic Methods
- Classes and OOPs: Callable, Objects Magic Methods
- Classes and OOPs: Private attributes usage
- Classes and OOPs: Context Manager Magic Methods
- Classes and OOPs: Abstract Base class Magic Methods
- Classes and OOPs: Descriptor Magic Methods
- Classes and OOPs: Copying Magic Methods
- Classes and OOPs: Pickling (Magic Methods)
- Classes and OOPs: Custom Sequences Magic Methods
- Classes and OOPs: Numeric, Augmented, Assignment Magic Methods
- Classes and OOPs: Metaclasses
- Classes and OOPs: Metaclass with __call__ usage
- Classes and OOPs: Metaclass with __call__ usage
- Classes and OOPs: Metaclass - Manipulate attr, methods, bases, and __dict__ definition before object creation using __new__
- Modules: import packageName - usage - 1 Single Import
- Modules: import packageName - usage - 2 Multiple Imports
- Modules: Packages - usage
- Modules: import packageName
- Modules: Create .whl package file (python 3.x)
- Modules: Imports - from xPackage import functionOrObject
- Modules: Imports - Multiple
- Modules: Imports - from xPackage import *
- Modules: Importing Folders like Modules
- Modules: Importing Creating Packages
- Modules: Importing Creating Packages - Alternative way
- Modules: Allowing Specific Packages Import
- Modules: Importing Default Packages
- GIT EBOOK CHEATSHEET
- LINUX REFERENCE CHEATSHEET
- PYTHON MACHINELEARNING CHEATSHEET
- PYTHON INTRODUCTION CHEATSHEET
- PYTHON LOOPS FILES
- PYTHON MATPLOTLIB CHEATSHEET
- PYTHON-UNIT TEST CHEATSHEET
- PYTHON EBOOK - LICENSED FREE SHARE
- UBUNTU/DEBIAN REFERENCE CHATSHEET
- PANDAS DOC LINKS
./1 - Basics/6-whileloop-infinite.py
./1 - Basics/7-whileloop-not.py
./1 - Basics/10-functions-args-argsDefaultValue-kwargs.py
./1 - Basics/11-functions-return-multiple-returns-single-line-expressions.py
./1 - Basics/13-local-variables.py
./1 - Basics/14-global-variable.py
./1 - Basics/15-local-global-variable-usage.py
./1 - Basics/16-using-global-in-local.py
./1 - Basics/17-scope-rules.py
./1 - Basics/18-error-handling.py
./1 - Basics/19-error-handling-specific-error.py
./1 - Basics/22-complexnumbers.py
./1 - Basics/23-byte-bytesarray-memoryview.py
./1 - Basics/24-typeconversion.py
./1 - Basics/25-lamda-functions.py
./1 - Basics/26-inbuilt-lamda-functions.py
./1 - Basics/27-del keyword.py
./1 - Basics/28-break-continue.py
./2 - Operators/1-assignment-operator.py
./2 - Operators/2-arithmatic-operators.py
./2 - Operators/3-assignment-augmented-operators.py
./2 - Operators/4-assignment-augmented-operator-others.py
./2 - Operators/5-multiple-assignments.py
./2 - Operators/6-multiple-assignments-errors.py
./2 - Operators/7-comparision-operators.py
./2 - Operators/8-comparision-identity-operators.py
./2 - Operators/9-logical-or-boolean-operators.py
./2 - Operators/10-membership-operators.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/2-strings-methods.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/3-strings-as-lists.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/4-strings-immutability.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/5-integer-intro.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/6-integer-methods.py
./3 - Types/3.1 - InbuiltTypes-String-Integer/1-strings-intro.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/1-lists.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/2-list-errors.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/3-list-manipulation.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/4-list-loops.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/5-list-for-loops.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/6-list-methods-index.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/6-methods.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/7-method-errors-index.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/7-method-errors.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/8-methods-append.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/9-methods-insert.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/10-methods-remove.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/11-methods-applyONWrongtype-errors-integer.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/12-methods-applyONWrongtype-errors-strings.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/13-methods-remove-valueerrors.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/14-methods-sort.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/15-methods-sort-alphabets.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/16-methods-sort-type-error.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/17-indentation-exceptions.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/18-list-reference.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/19-list-passing-reference-function-args.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/20-list-copy.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/21-list-deepcopy.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/22-reassignation-not-modification.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/23-strings-as-lists.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/24-strings-immutability.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/25-tuples.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/26-tuples-error.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/27-function-return-tuples-multiple-returns.py
./3 - Types/3.2 - InbuiltTypes-ListsTuples/28-named-tuple.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/1-dictionaries.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/2-dictions-KeyErrors.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/3-dictions-methods-keys.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/4-dictions-methods-values.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/5-dictions-methods-items.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/6-dictions-multiple-assignments.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/7-dictions-getting-truelists-from-methods.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/8-dictions-checking-key-existence.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/9-dictions-methods-get.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/10-dictions-methods-setdefault.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/11-dictions-methods-setdefault-usage.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/12-sets.py
./3 - Types/3.3 - InbuiltTypes-DictionarySetArray/13-sets-manipulation.py
./3 - Types/3.4 - OtherTypes-DataStructures/1-Array.py
./3 - Types/3.4 - OtherTypes-DataStructures/2-Array-methods.py
./3 - Types/3.4 - OtherTypes-DataStructures/3-Time.py
./3 - Types/3.4 - OtherTypes-DataStructures/4-Other-Inbuilt-DataTypes.py
./3 - Types/3.4 - OtherTypes-DataStructures/5-Other-DataType-Modules.py
./3 - Types/3.4 - OtherTypes-DataStructures/7-Datatypes-based-on-use-cases.py
./4 - Classes-inheritance-oops/1-classes-intro.py
./4 - Classes-inheritance-oops/2-classes-init-usage.py
./4 - Classes-inheritance-oops/3-classes-private-variables-usage.py
./4 - Classes-inheritance-oops/4-classes-inheritance-isinstance-issubclass.py
./4 - Classes-inheritance-oops/5-classes-overriding-overwriting-overloading.py
./4 - Classes-inheritance-oops/6-classes-child-private-variable-access.py
./4 - Classes-inheritance-oops/7-classes-as-object.py
./4 - Classes-inheritance-oops/8-classes-simple-inheritance-super-instantiation.py
./4 - Classes-inheritance-oops/10-classes-inheritance-multiple-classes.py
./4 - Classes-inheritance-oops/11-classes-multiple-inheritance-super-class-instantiation.py
./4 - Classes-inheritance-oops/12-iteration-of-objects.py
./4 - Classes-inheritance-oops/13-classes-lifecycleOfClasses.py
./4 - Classes-inheritance-oops/14-classes-descriptors-gets-sets-adv.py
./4 - Classes-inheritance-oops/15-classes-property-usage-prop-attr-diff-ex.py
./4 - Classes-inheritance-oops/16-classes-init_subclass.py
./4 - Classes-inheritance-oops/17-classes-metaclass.py
./4 - Classes-inheritance-oops/18-classes-metaclasses-call-usage.py
./4 - Classes-inheritance-oops/19-classes-metaclasses-call-usage.py
Classes and OOPs: Metaclass - Manipulate attr, methods, bases, and __dict__ definition before object creation using __new__
./4 - Classes-inheritance-oops/20-classes-metaclasses-convert-attr-to-upper.py
./4 - Classes-inheritance-oops/21-classes-polymorphism.py
./4 - Classes-inheritance-oops/22-classes-comparision-magic-methods.py
./4 - Classes-inheritance-oops/23-classes-numeric-unary-magic-methods.py
./4 - Classes-inheritance-oops/24-classes-numeric-normal-magic-methods.py
./4 - Classes-inheritance-oops/25-classes-numeric-reflected-arithmatic-magic-methods.py
./4 - Classes-inheritance-oops/26-classes-numeric-augmented-assignment-magic-methods.py
./4 - Classes-inheritance-oops/27-classes-type-conversion-magic-methods.py
./4 - Classes-inheritance-oops/28-classes-representing-classes-magic-methods.py
./4 - Classes-inheritance-oops/29-classes-attribute-access-magic-methods.py
./4 - Classes-inheritance-oops/30-classes-custom-sequences-magic-methods.py
./4 - Classes-inheritance-oops/30-classes-reflection-magic-methods.py
./4 - Classes-inheritance-oops/31-classes-callable-objects-magic-methods.py
./4 - Classes-inheritance-oops/32-classes-context-manager-magic-methods.py
./4 - Classes-inheritance-oops/33-classes-abstract-base-classes-magic-methods.py
./4 - Classes-inheritance-oops/34-classes-descriptor-magic-methods.py
./4 - Classes-inheritance-oops/35-classes-copying-magic-methods.py
./4 - Classes-inheritance-oops/36-classes-pickling-magic-methods.py
./4 - Classes-inheritance-oops/37-classes-abstract-classes.py
./4 - Classes-inheritance-oops/38-classes-static-classes.py
./4 - Classes-inheritance-oops/39-classes-dataclasses-interface.py
./5 - Modules/0 - imports - import key usage/1 - import - key usage/
./5 - Modules/0 - imports - import key usage/2 - multiple imports/
./5 - Modules/0 - imports - import key usage/3 - packages/
./5 - Modules/1 - imports - import key/
./5 - Modules/10 - packages - whl file/
./5 - Modules/2 - imports - from x import single functionORobject/
./5 - Modules/3 - imports - multiple/
./5 - Modules/4 - imports - from x import star/
./5 - Modules/5 - importing - folders/
./5 - Modules/6 - importing - creating - packages/
./5 - Modules/7 - importing - creating - packages - alternate/
./5 - Modules/8 - importing - creating - allowing specific packages/
./5 - Modules/9 - importing - defaultpackages/
./CheatSheets/Linux-Reference.pdf
./CheatSheets/MachineLearningAlgorithms.png
./CheatSheets/Python-Intro.jpg
./CheatSheets/Python-Loops-Classes-Files.jpg
./CheatSheets/Python-MathplotLib.jpg
./CheatSheets/Python-Unittest.jpg
./CheatSheets/Python-eBook.pdf