👉 Subfunctions are functions that operate on smaller versions of a larger function. They are often used in programming to simplify or manipulate the behavior of a larger function, and can be defined as follows:
1.
Function Composition
: A subfunction is composed of another function by using it as an argument. For example:
```python
def add_numbers(a, b):
return a + b
def multiply_by_two(x):
return 2
x
# Subfunctions to compose the above: