Answers for "sys stdin python"

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

Python Answers by Framework

Browse Popular Code Answers by Language