Use of function in the python programming language. The following code shows how to define and use a function in python.
def fun(): print("Hello word") return 12 a = fun() print(a)
Output:
Hello word 12