Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.32 KB

File metadata and controls

62 lines (47 loc) · 1.32 KB

Python Basics Playbook

Prerequisites:

  • Install Python
  • Verify that Python is installed in PATH
  • Install a code editor, VSCodium
  • Install needed extensions
  • Install pip and check it's available on PATH
  • Execute Hello World in Python REPL

Beginner session outline:

  • Use Python Shell Mode
  • Try interactive printing
  • Do arithmetic
  • Use variables
  • Use basic data types and variables - bool, int, float, str
  • Understand string methods
  • Use list, tuple and dictionary
  • Use list, tuple and dictionary methods
  • Use script mode
  • Create a function

Advanced session outline:

  • Create a class
  • Create a module
  • Create a package
  • Use built-in libraries - datetime, os, sys, etc.
  • Do file manipulation - create, read, write, delete
  • Use internal modules

Expert session:

  • Create virtual environment
  • Activate virtual environment
  • Install dependencies using pip
  • Update packages using pip
  • Generate requirements.txt
  • Learn async/await programming
  • Use a HTTP client (requests) for networking
  • Use decorators
  • Use factory patterns

Superhuman session:

  • Implement futures and multi threading
  • Use poetry for dependency management
  • Packaging python libraries
  • Use Flask for building RESTful APIs

References:

  • Python Documentation
  • Real Python
  • Flask
  • Poetry

Credits : Keerthana / Chennai Chapter