Anonymous user
99 Bottles of Beer/Python: Difference between revisions
→Normal Code: you can put the pluralization in the sing function
(moving code from main task-page to sub-page) |
(→Normal Code: you can put the pluralization in the sing function) |
||
Line 5:
===Normal Code===
<lang python>def
▲ print b or 'No more', plural('bottle', b), end
for i in range(99, 0, -1):
sing(i, 'of beer on the wall,')
sing(i, 'of beer,')
print
sing(i-1, 'of beer on the wall.\n')</lang>
|