> For the complete documentation index, see [llms.txt](https://ludeeus-2.gitbook.io/ludeeus-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ludeeus-2.gitbook.io/ludeeus-dev/playground/99-bottles-of-beer.md).

# 99 Bottles of Beer 🍻

{% code title="beers.py" %}

```python
"""
99 Bottles of Beer.
"""
from time import sleep

for num in range(99, 0, -1):
    if num > 1:
        print(f"{num} bottles of beer on the wall, {num} bottles of beer.")
        if num >2:
            suffix = f"{num -1} bottles of beer on the wall."
        else:
            suffix = f"{num} bottles of beer on the wall."
    elif num == 1:
        print(f"{num} bottle of beer on the wall, {num} bottle of beer.")
        suffix = "no more beer on the wall!"
    print(f"Take one down, pass it around, {suffix}")
    print("--")
    sleep(2)
```

{% endcode %}
