import sys for line in sys.stdin: print(line, end="") code example
Example: input stdin python
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')