In this example we have defined three functions and then we have a function call for each of these functions
at the bottom of the function definition and then by passing the arguments we can execute each of these
functions.
But many programming languages like C++ and Java required a main function in order to execute the functions
in your program.
So including a main function is not required in Python but it can structured python programs in a logical
way that puts most of the important components of the program into one function.
That is the main function.
And it also makes up programs easier for non Python programmers to read.
So instead of placing the function calls at the bottom of each function we are going to define the main
function and then place all the function calls to different functions defined in your program here.
Now I have included the main function in the python program and function calls to different functions
in our python program are now included in the main function so including a main function in our programs
can be handy to structure our code in a logical way.
So most of the important components are contained within this main function.