Course lesson

Create Reusable Components with Functions in Python

Functions allow you to encapsulate your code into a reusable component. Learn how to create functions, add arguments to your functions, assign default values to arguments, and use keyword arguments.

Duration
6 min
Access
Pro
Transcript
Needs source

Functions allow you to encapsulate your code into a reusable component. Learn how to create functions, add arguments to your functions, assign default values to arguments, and use keyword arguments.