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
You can read from stdin and then store inputs into "data" as follows:
data = "" for line in sys.stdin: data += line