Page 56 - Modular v1.1 Pyhton
P. 56
Program 4: To find the product of two numbers using function.
On running the above program, you will get the following output:
Recap
A function is a block of organised and reusable code used to perform a single or related
action.
Python functions can be categorised into built-in functions and user-defined functions.
A function can be called anytime from other functions or from the command prompt after the
definition.
Exercise
A. Tick ( ) the correct option.
1. Which of the following is a block of code to perform a particular task?
a. Function b. Operator
c. Parameter d. Argument
2. Which of the following are the features of functions?
a. A program is divided into small modules and each module performs some
specific task. Each module can be called as per the requirement.
54 Touchpad MODULAR (Version 1.0)

