Page 100 - Dig_CodeAI_V2.1_Class_8
P. 100
For example:
def my_function( ): Name of a function
print (“Hello”) Body of a function
my_function( ) Function call
Program: To add two numbers using all the three types of user-defined functions.
On running the above program, you will get the following output:
Program: To print a string by calling a function.
98 DigiCode AI (Ver. 2.1)-VIII

