In an if name == main block, there's not really a need to define and call functions as your flow control is always going to proceed in the same direction. You can simply run your two for loops and end with a print statement.