99 bottles of beer: Difference between revisions

(→‎{{header|C++}}: fixed example)
(→‎{{header|Python}}: even shorter)
Line 249:
 
=={{header|Python}}==
<python>a, b, c, s = " bottles of beer", " on the wall\n", "Take one down, pass it around\n", str
d = [strs(x)+a+b+strs(x)+a+"\n"+c+strs(x-1)+a+b for x in xrange(99, 0, -1)]
for i in d: print i</python>
Anonymous user