Please refer to
to find more details on the following codes.
# # In python, 'def' statement is used to define a function. # For example, in the following code, we are definining # a function named 'square' for variable 'x' and the # function returns x times x. # # 'def' and 'return' are standard python keywords below. def square(x): return x*x print(square(2)) print(square(3))