What is a function in Python?
A function is a reusable block of code designed to perform a specific task. Functions help improve code reusability and organization.
Example:
def greet():
print("Hello")
Functions reduce code duplication and make programs easier to maintain.