3 # By GvR, demystified after a version by Fredrik Lundh.
12 if n
== 0: return "no more bottles of beer"
13 if n
== 1: return "one bottle of beer"
14 return str(n
) + " bottles of beer"
16 for i
in range(n
, 0, -1):
17 print bottle(i
), "on the wall,"
19 print "Take one down, pass it around,"
20 print bottle(i
-1), "on the wall."