Advertisement
Guest User

Python 3.6 99 bottles one liner.

a guest
Jan 20th, 2017
4,614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. all(list(print(f'{i} bottle{"s" if i != 1 else ""} of beer on the wall, {str(i).lower()} bottle{"s" if i != 1 else ""} of beer.\n{"Take one down pass it around" if str(i).lower() == str(i) else "Go to the store and buy some more"}, {i-1 if i not in [1, "No more"] else "no more" if i == 1 else 99} bottles of beer on the wall.\n') for i in list(range(99, 0, -1))+['No more'])) or ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement