chapter

Functions & Logic

Reusable blocks, arguments, scope, and debugging your own thinking.

  1. 01
    Functions That Make Sense

    At its heart, a function is a way to give a name to a small piece of work.

    BeginnerFunctions
  2. 02
    Arguments and Returns

    Arguments and returns are the two-way street of a function.

    IntermediateFunctions
  3. 03
    Scope and Naming

    Scope is the set of rules that determines where a name can be seen and used in your program.

    IntermediateFunctions
  4. 04
    Debugging Your Logic

    Debugging your logic is the disciplined process of finding and fixing mistakes in how your code thinks, not just how it looks.

    IntermediateFunctions
  5. 05
    Writing Readable Code

    Writing readable code is about making your functions easy for humans to understand.

    IntermediateFunctions
  6. 06
    Common Python Mistakes

    This concept is about recognizing the classic mistakes that beginners make when writing functions in Python.

    BeginnerFunctions