for example, I want to to send `print(32) to python and it should print 32 and remain open until I press ctrl+d
I did following
echo 'print(32)' | python
but It just prints 32 and closes the python.
I which to keep python's interactive shell open so I can futher send command to it with my keyboard.
EDIT:
that was just example. instead of python it could be node, ruby or docker exec -it command.
basically I want to pipe output as if I was typing via my keyboard