Python concepts

Basics

  • Program structure
  • Syntax
  • Types
    • Numbers 1234
    • Strings "Hello!"
    • Booleans True
    • Decimal numbers 9.87
    • Lists [1,2]
    • Maps/dictionaries {a:1,b:2}
  • Variables
    • Declare a = "yes"
    • Use

Flow control

  • Loops
    • while
    • for
    • in
    • range
  • Conditionals
    • if

Structuring programs

  • Comments
    • # This is a comment
  • Functions
    • def
  • Libraries
    • import
    • Create

Advanced concepts

  • Classes
    • class
    • __init__
    • self
    • def
  • Objects
    • Create
    • Method call
  • Code documentation
    • Block level strings """This string can span multiple lines"""
  • Lambdas
    • lambda