Functions
Defining your own command with def, parameters, returning a value with return, and default values.
Simple enough for a 5-year-old to understand
def: write your own command
A function binds a repeated task to a name. It's defined with def and called by its name.
def greet(): print("Hello!")greet()🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)