Core Concept Mastery • Python Visual Series Module
A function is a reusable block of code that performs exactly one specific task. Functions allow you to break your program into smaller, modular chunks, reducing repetition and making your code easier to read and maintain.
def greet():
print("Hello!")
greet()
Let's trace exactly what happens in your computer's memory when you define and call a function. Click "Next →" to begin.