How to create a sub-program in Python:
1 - define it by using ‘def’.
2 - give it a name e.g message 1
3 - the code we then want to be part of the sub-program is indented
How to call a sub-program in Python
Parameters
Example of parameters in sub-programs using a simple addition program where the user inputs two numbers.
Function vs Procedure