What is the benefit of subroutines?

Hi, I read that subroutines are the same as functions.

So I wonder: what are the benefits of using subroutines instead of functions directly?

See my slide:

In short: Python functions makes the function code to be copy-pasted/duplicated in the bytecode.

2 Likes