def function in python explained code example Example: how to use def in python def functionName(variable): //function content