Skip to main content

This will echo standard input to standard output:

import sys line = sys.stdin.readline() while line:   print line, line = sys.stdin.readline() 

This will echo standard input to standard output:

import sys line = sys.stdin.readline() while line: print line, 

This will echo standard input to standard output:

import sys line = sys.stdin.readline() while line:   print line, line = sys.stdin.readline() 
Source Link
rlib
  • 8k
  • 3
  • 37
  • 43

This will echo standard input to standard output:

import sys line = sys.stdin.readline() while line: print line,