/pyclassfeb21

Materials for 4 week Python training on Python, Flask, Django and PyTest

Primary LanguagePython

Python Class Q1 2021

Repository for Python Training of 4 weeks from mid Feb to Mar 2021.

Data Structures

  • Numbers
  • Strings
  • Lists

Control Flow Tools

  • if
  • for
  • range()
  • break, continue and else
  • pass

Functions

  • default args
  • keyword args
  • variable args
  • lambda expressions
  • docstrings
  • function annotations and type hints

Coding Style

  • Idiomatic Python
    • PEP 8
    • PEP 20

More Data Structures

  • More Lists
  • del
  • Tuples and Sequences
  • Sets
  • Dicts
  • Looping Techniques
  • Conditions
    • in, not in
    • chaining
    • and, or
  • comparing sequences

Modules

  • import syntax
  • modules as scripts
  • standard modules
  • packages
    • import syntax
  • intra package references

I/O

  • formatting
    • f-strings
  • format() method
    • positional
    • keyword
  • manual formatting
    • repr
    • rjust
    • ljust
    • center

Introduction to OOP

  • objects
  • classes
  • inheritance
  • instance and class

Exception Handling

  • Except
  • Raise
  • Custom

Python Design Patterns ( Advanced OOP )

  • Introduction

Built in modules discussion

  • Standard Lib
  • Cheese shop

Flask

  • REST Principles
  • Guide
  • REST framework

Django

  • Basics
  • REST framework

PyTest

  • Unit Testing
  • Parameterization
  • Options