Think Functional!

The IDE

'IDE' is short for 'Integrated Development Environment'. It's where we'll code.

Instructions:

    1. Go to trinket.io.
    2. Sign up. Use your school Google account.
    3. Open a new Python Trinket.
    4. Open the drop-down menu next to Run. Choose Console.

Numeric Operators

The numeric operators are two place functions that take two numbers and return a third. They are placed between their arguments, i.e. they are infix.

Operator Table and Operator Examples

Names

We can give names to values. This allows us to store those values away and use them later.

Names and Name Examples

Functions

A function takes a value or values, performs a computation and then returns a value. Consider the square root function.

Functions and Function Examples

Selection


Strings and Lists


Modules