once you write and properly debug a function, you can use it in the program (or different programs) again and again without having to rewrite the same code repeatedly.