Python reading from standard in

From MyWiki
Revision as of 15:34, 2 June 2018 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
import sys
 
for line in sys.stdin:
    sys.stdout.write(line)
 
Why is this not working in python2