procedure python
Either enter PYTHON mode or execute given argument as PYTHON script
Syntax
python [script]
Arguments
script: | A string with the script to execute |
Examples
To print the integer number 10 using python:
python "print(10)" To define a simple function as python module, callable then from DPUSER:
python "def add(a,b): return a+b"
print add(2,2)