Answers for "python sys.stdin()"

3

python read from stdin

import sys
data = sys.stdin.readlines()
Posted by: Guest on December-07-2020
0

from sys import stdin

from sys import stdin
 
for line in stdin:
	n = int(line)
	if n == 42:
		break
	print(n)
Posted by: Guest on May-09-2021

Code answers related to "python sys.stdin()"

Python Answers by Framework

Browse Popular Code Answers by Language