how to create custom function in python code example Example: how to create a custom function in python def functionName(x): print(x)