All pastes #148665 Raw Edit

Miscellany

public python v1 · immutable
#148665 ·published 2006-08-25 09:19 UTC
rendered paste body
MAX = 100def fold_num(x, y):        return ((x - y) * -2 - 1) * (x/y) + xdef print_num(x):        print "%d," % fold_num(x, MAX),        funcs[x/(MAX * 2 - 3)](x+1)def newline(x):        print "%d" % fold_num(x, MAX)funcs = (print_num, newline)funcs[0](1)