Time: 10-15 minutes
Purpose: Give you practice with using functions in python.
Introduction: Try to work out the following tasks in python and run them to make sure they do what you expect.
Tasks:
1.Write a function (call it my_sum) that takes in two arguments and returns the sum of them
2. Modify the above function to use named parameters for the input arguments
3. Write a function (call it my_square) that take in a number and squares it (i.e. returns number**2)
4. Write a function called sum_of_squares that takes in two numbers and returns the sum of their squares (i.e. squares the numbers and then adds those squares together). Use the other two functions you have already created
Further learning resources:
A file showing a possible solution is available on github here