08: Functions

Introduction We’ve used Python for an array of applications so far. You should by now be familiar with loops, lists, strings, mathematical operations, and how they all work together. We’ve also used a lot of Python’s built in functions to help us get the job done! Here’s a few examples: import math myRange = range(0, 10) mySqr = math.sqrt(2) newList = myList.append(newElement) It’s clear to see how these »