How do i define a function in python?
Functions in Python are defined using the `def` keyword.
Example:
def greet(name):
return 'Hello, ' + name
This function takes a name as an argument and returns a greeting string.