For this assignment these were my instructions:

You will go back and do WSQ01 – Fun with Numbers again.

But this time, write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.

You main program needs to ask the user for the input and then call each function to calculate the answer for each of the parts.

This is what I came up with:

Captura de pantalla 2017-02-14 a la(s) 10.14.49.png

Captura de pantalla 2017-02-14 a la(s) 10.16.01.png

As we can see in this program, we first, take two numbers and send them to different functions that return the result of their respective calculation.

If you want an explanation on how functions work, here is a post I made about them:

Functions (Python3)