T 14 - Beginner Programming With Functions
T 14 - Beginner Programming With Functions
Beginner
Programming with
Functions
Welcome
Logan Meadows
1. Understanding functions
2. Calling functions
● The list of functions that you can use in Python doesn’t just
stop with what is built in.
● Using Pip (python package manager), you can install
various packages containing modules.
○ Note: Some packages are already installed by default
in Python, such as the maths package.
● These modules can be imported into your script using an
import statement.
Importing Modules
● Let’s take a look at the maths module. Let’s say that you
want to use round(), which rounds a number off. There are
two ways to access this:
● import math
my_result = math.round(my_num, 2)