Think Functional!
The IDE
The IDE
'IDE' is short for 'Integrated Development Environment'. It's where we'll code.
Instructions:
- Go to trinket.io.
- Sign up. Use your school Google account.
- Open a new Python Trinket.
- Open the drop-down menu next to Run. Choose Console.
Numeric Operators
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.
Names
Names
We can give names to values. This allows us to store those values away and use them later.
Functions
Functions
A function takes a value or values, performs a computation and then returns a value. Consider the square root function.
Selection
Selection
Strings and Lists
Strings and Lists
Modules
Modules
Want More?
Want More?