The use of a main subroutine is a widely used convention in programming and in particular in procedural programming. When used, the main subroutine is the starting point for the program. The position of the main subroutine within the overall program will depend on several factors. For example, in Python, it will be found at the bottom of the program because of the way that the code is interpreted when it is run.