Branching Computations by dianne

r=reduce
while 1:print`r(lambda l,c:[l[1:],l[:-1],[sum(l)],[r(long.__mul__,l,1L)],[x+o for x in l for o in[-1,1]]][ord(c)/2%5],raw_input(),[0])`.replace('L','')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page