We have this good answer for how to read stdin.
- But I don't understand how do I run the python code so it will read from a file as
stdin
? - Is
print
is likestdout
?
I ask it cause I saw this order in facebook demo puzzle:
NOTE: You need to write the full code taking all inputs are from stdin and outputs to stdout If you are using "Java", the classname is "Solution"