Skip to content

Instantly share code, notes, and snippets.

@balook
Created March 9, 2020 17:24
Show Gist options
  • Save balook/9257eac76f1f8db85c28c3a4cd4c36c6 to your computer and use it in GitHub Desktop.
Save balook/9257eac76f1f8db85c28c3a4cd4c36c6 to your computer and use it in GitHub Desktop.
Taking data into stdin from using python
#! /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