You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
152 B
Python

import sys
def while_stdin(func):
while True:
line = sys.stdin.readline()
if line is "":
break
func(line[:-1])