when ran as a script simulates cat with no arguments import sys if name main for line in sys stdin sys stdout writeline
import sys

if __name__ == "__main__":
    for line in sys.stdin:
        sys.stdout.write(line)