What is a Function?
Learn how functions help organize and reuse your code.
1
Introduction to Functions
Functions are reusable blocks of code designed to perform specific tasks. They help reduce redundancy and make programs more organized.
In this lesson, you will learn how to define, call, and use functions in Python.

2
What is a Function?
A function is a named section of code that performs a specific task. Functions can take inputs, process data, and return outputs.
For example:
# Defining a simple function
def greet():
print("Hello, World!")