Shape Shape

Function

Function is a reusable block of code designed to perform a specific task. Used in programming to modularize and simplify code.

Example:

A Python function calculates the total price of items in a shopping cart.

WhatsApp Icon