line by line
The function `def`inition executes first, and then the call to it executes after. It's not literally line-by-line though. With the CPython interpreter, your Python code is compiled to bytecode, and it's that bytecode that's interpreted.