6 lines
305 B
Mojo
6 lines
305 B
Mojo
# probe: on piped input, what does one input() return? (the first line, without its line break and with its spaces; the rest of the pipe is read and dropped, so a second input() raises EOF: see input-lines)
|
|
# stdin: a b\nsecond\n
|
|
# expect-stdout: [a b]
|
|
def main() raises:
|
|
print("[" + input() + "]")
|