I have a Python function, fooPy() that returns some value. ( int / double or string)
I want to use this value and assign it in a shell script. For example following is the python function:
def fooPy():
return "some string"
#return 10 .. alternatively, it can be an int
fooPy()
In the shell script I tried the following things but none of them work.
fooShell = python fooPy.py
#fooShell = $(python fooPy.py)
#fooShell = echo "$(python fooPy.py)"