I'd like to simply execute a Python command without having to write a script or enter the interpreter. Is there a way that I could run something like:
python --execute "pow(12.31351,2)"
And have it simply print the result?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community