Li-Fan Chen says to YSITD
if a>b: return factorial(a)/factorial(a-b) else: return factorial(b)/factorial(b-a) 很重複欸