Building Functions

Functions prove that good programmers are lazy. A function is a named block of code that does a useful task. When you need that task again, you just type the name of the function rather than the whole block of code. Brilliant!

Objectives:

  • Differentiate between built-in functions and user-generated functions

  • Become familiar with Function terms (call, define, parameter, & return value)

  • Constructing functions

Download the p5_turtle_art.py file to get started.

CC - Lesson P.5 - Constructing Functions