Anonymous user
99 Bottles of Beer/Python: Difference between revisions
→Python 3 f-strings and walrus operator
No edit summary |
|||
Line 110:
print n - 1, 'bottle%s of beer on the wall.\n' % ('s', '')[n - 1 == 1]</lang>
===
<lang python>bottles = 100
while (bottles:=bottles-1) != 0:
|