Week 3 - Syntax

Hardcoding

NO HARDCODING - The practice of writing a value directly into your code. The hardcoding example is on the right.

Functions

There are three major parts of a function

  1. Function header - defines the function name and the input(s)

  2. Statements - the reusable block of code

  3. Return statement - defines the output(s)

Lambda Functions

Quick and simple way to write a funct

function_name = lamda input1, input2: output