--- author: '' category: '' date: 2008/10/01 16:57 description: '' link: '' priority: '' slug: BB760 tags: programming, python title: Golfing type: text updated: 2008/10/01 16:57 url_type: '' --- I spent a few hours today round `Code Golf`_ and here's a neat thing I did.I think this is python's shortest possible factorial:: f=lambda x:x<2or x*f(x-1) You may say it's not correct, because f(1) returns True, but int(True) is 1, so it's almost there ;-) And here's a surprisingly readable (as long as you know pascal's triangle) and not too long answer to their choose_ challenge: .. code-block:: python n,k=input() a,c=1,0 while c