repl.it
@AlexanderSmith8/

99 Bottles of Beer on the wall.

Python

we work together

fork
loading
Files
  • main.py
  • aswer
  • pp
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
bottles = 99

while bottles > 1:
  print(f"{bottles} bottles of beer on the wall...")
  print(f"{bottles} bottles of beer")
  print("Take one down and pass it around,")
  bottles = bottles - 1
  if bottles == 1:
    print(f"{bottles} bottles of beer on the wall...")
  else:
    print(f"{bottles} bottles of beer on the wall...")
  print()

print(f"{bottles} bottles of beer on the wall...")
print(f"{bottles} bottles of beer")
print("Take one down and pass it around,")
print("No more beer")