How to Use Functions in Python for Better Code Efficiency?

How to Use Functions in Python for Better Code Efficiency?