Share 99 bottles of beer on the wall python

huutuongtruong

New member
`` `Python
# 99 chai bia trên tường ở Python

`` `` `` Python
def chín mươi_nine_bottles ():
"" "In lời bài hát của 99 chai bia trên tường." ""

Đối với I trong phạm vi (99, 0, -1):
Nếu i == 1:
in (f "{i} chai bia trên tường, {i} chai bia.")
In ("Hãy xuống và vượt qua nó, không còn chai bia trên tường.")
khác:
in (f "{i} chai bia trên tường, {i} chai bia.")
In ("Hãy hạ một cái xuống và vượt qua nó, {i - 1} chai bia trên tường.")

Nếu __name__ == "__main__":
chín mươi_nine_bottles ()
`` `

## 5 hashtags

* #99bottlesofbeer
* #Python
* #LYRICS
* #Programming
* #Bài hát
=======================================
```python
# 99 Bottles of Beer on the Wall in Python

``` ```python
def ninety_nine_bottles():
"""Prints the lyrics of 99 Bottles of Beer on the Wall."""

for i in range(99, 0, -1):
if i == 1:
print(f"{i} bottle of beer on the wall, {i} bottle of beer.")
print("Take one down and pass it around, no more bottles of beer on the wall.")
else:
print(f"{i} bottles of beer on the wall, {i} bottles of beer.")
print("Take one down and pass it around, {i - 1} bottles of beer on the wall.")

if __name__ == "__main__":
ninety_nine_bottles()
```

## 5 Hashtags

* #99bottlesofbeer
* #Python
* #LYRICS
* #Programming
* #song
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top