import stdin code example
Example 1: input stdin python
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')
Example 2: from sys import stdin
from sys import stdin
for line in stdin:
n = int(line)
if n == 42:
break
print(n)
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')
from sys import stdin
for line in stdin:
n = int(line)
if n == 42:
break
print(n)