Need help with this, appreciate if someone can try to suggest a fix.
$ echo "print('This works fine')"|python3
This works fine.
But:
$ echo "input('This is NOT working! ')"|python3
This is the output received:
This is NOT working! Traceback (most recent call last): File "<stdin>", line 1, in <module> EOFError: EOF when reading a line
It seems you just want to execute python commands inline from bash. For this task you can use this:
EDIT: If you want to use the pipe, you can just take the input from bash and pipe it to python, like this: