pyth
pyth copied to clipboard
Better input parsing
trafficstars
A bunch of golfing challenges give the input in a really stupid format like 1,2,abc or 1 2 3. It would be nice if there's a method that splits and evaluates them into [1, 2, "abc"] and [1, 2, 3]. Or even let Q and .Q do the work.
There's already rQ7, which splits by whitespace and evaluates.
@Ypnypn O.k. This takes care of the 1 2 3 input format.
But the other example I posted is still really painful to parse.