3 # Input: stdin (consumes)
4 # Output: stdout (newline delimited)
5 # Example: echo -e "foo\nbar\n" | python3 this_script.py
6 # Depends: Python 3.10.12
12 """Reads from stdin and outputs to stdout."""
14 for line
in sys
.stdin
:
15 # Remove trailing newline character
23 if __name__
== "__main__":