For example:
A script1.py gets an infix expression from the user and converts it to a postfix expression and returns it or prints it to stdout
script2.py gets a
For example if you have nginx running and script1.py:
import os os.system("ps aux")
and script2.py
import os os.system("grep nginx")
Then running:
python script1.py | script2.py
will be same as
ps aux | grep nginx