User-defined Functions in Python
Functions that we define ourselves to do certain specific task are referred as user-defined functions.
Functions that readily comes with Python are called built-in functions. Python provides built-in functions like print(),input(), etc. but we can also create our own functions.
- User-defined functions help to decompose a large program into small segments.
- Function can be used to include repeated codes and execute when needed by calling that function.
- Large project can be divided by making different functions.
Output : Start 35