Python Arena

Module 32

More Python features

A handful of useful Python features. Conditional expressions that choose a value in one line, pass for a block that does nothing, loops with an else block, default parameter values and functions that take any number of arguments.

Steps

  1. Conditional expressions
  2. pass, and loops with else
  3. Default parameter values
  4. Any number of arguments