Function in Python

In python, function is defined using def keyword. And functions should be declared before their usage

For Example
def add(a,b):
    return a+b;

print add(10,20);


Output
30


add is a function name, accepting two input arguments a, b. Print calls the user defined function with input arguments 10,20 and output is printed on the console.