Created
March 9, 2020 17:24
-
-
Save balook/9257eac76f1f8db85c28c3a4cd4c36c6 to your computer and use it in GitHub Desktop.
Taking data into stdin from using python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys | |
import os | |
for line in sys.stdin.readlines(): | |
data = line.strip() | |
print(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment