I\'m trying to do some of the code golf challenges, but they all require the input to be taken from stdin. How do I get that in Python?
stdin
The following chip of code will help you (it will read all of stdin blocking unto EOF, into one string):
EOF
import sys input_str = sys.stdin.read() print input_str.split()