/python-handbook

A comprehensive notebook documenting my Python learning journey, offering all the essentials in Python

MIT LicenseMIT

Python Handbook

A comprehensive notebook documenting my Python learning journey, offering all the essentials in Python

Table Of Content:

  1. Print Statement
  2. Implicit Line Continuation (Optional Semicolon)
  3. Comments
  4. Data Types
    • 4.1 List VS Tuple
  5. Variables
    • 5.1 Variables Rules
      • 5.1.1 Variables Naming Rules
      • 5.1.2 Variables Assignment Rules
      • 5.1.3 Data Types
      • 5.1.4 Convention for Variable Names
      • 5.1.5 Avoid Single Character Names
      • 5.1.6 Readability Counts
  6. Escape Character Sequences
  7. String Concatenation
    • 7.1 String Concatenation Examples
  8. Strings in Python
    • 8.1 String Methods
    • 8.2 Strings Examples
  9. Numbers in Python
  10. Arithmetic Operations
  11. String Indexing and Slicing
  • 11.1 String Indexing and Slicing Examples
  1. Lists
  • 12.1 List Methods
  • 12.2 List Examples
  1. Tuples
  • 13.1 Tuples Concatenation
  • 13.2 Repetition
  • 13.3 Tuples Methods
  • 13.4 Tuples Examples
  1. Sets
  • 14.1 Set Methods
  • 14.2 Set Examples
  1. Dictionaries
  • 15.1 Two Dimensional Dictionaries
  • 15.2 Dictionary Methods
  • 14.3 Dictionar Examples
  1. Booleans
  • 16.1 Boolean Operator
  1. Assignment Operators
  2. Comparison Operators (Relational Operators)
  3. Data Type Conversion
  4. User Input
  • 20.1 User Input Examples
  1. Control Flow in Python (if, Else, Elif )
  • 22.1 Nested If
  • 22.2 or in control flow statements
  • 22.3 Ternary Conditional Operator
  • 22.4 Control Flow Small Project
  • 22.5 Control Flow Examples
  1. Membership Operators
  2. Small Project 1
  3. Loops:
  • 25.1 While Loop:
    • 25.1.1 While Loop Examples
  • 25.2 For Loop:
  • 25.3 Loops Examples:
  1. Functions:
  • 26.1 Functions packing and unpacking arguments:
  • 26.2 Functions packing and unpacking keyword arguments:
  • 26.3 Default Parameters
  • 26.4 Recursive Functions:
  • 26.5 Functions Examples:
  1. File Management in Python:
  • 27.1 Open File
  • 27.2 Read File Content
  • 27.3 Close File
  • 27.4 Write In a File
  • 27.5 Append Data In a File
  1. Pythons Built In Functions:
  • 28.1 Pythons Built In Functions Examples:
  1. Date and Time in Python:
  • 29.1 Working With Date and Time:
  • 29.2 Date and Time Formatting:
  • 29.3 Python strftime cheat sheet
  • 29.4 Date and Time Examples:
  1. Generators
  • 30.1 Generators Examples:
  1. Decorators
  • 31.1 Decorators Examples:
  1. Documentation and DocString
  • 32.1 Documentation:
  • 32.2 Code Documentation and DocString
  1. Exceptions and Errors
  • 33.1 Exception Raising
  • 33.2 Exception Handling
  1. Regular Expressions
  2. Object Oriented Programming in Python
  • 35.1 Main Concepts of OOP in Python
  • 35.2 Class Methods and Instance Methods
  • 35.3 Class Attributes and Instance Attributes
  • 35.4 Important Concepts of OOP in Python
  • 35.5 OOP Examples

34.0 Regular Expressions 35.0 Object Oriented Programming in Python

  • 35.1 Main Concepts of OOP in Python
  • 35.2 Class Methods and Instance Methods
  • 35.3 Class Attributes and Instance Attributes
  • 35.4 Important Concepts of OOP in Python
  • 35.5 OOP Examples