Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def recite(start, take=1):
- song = []
- for take in range(0, take):
- if start > 2:
- song.extend([f"{start} bottles of beer on the wall, {start} bottles of beer.",
- f"Take one down and pass it around, {start-1} bottles of beer on the wall.",""])
- start -= 1
- #print(song)
- elif start == 2:
- song.extend([
- f"{start} bottles of beer on the wall, {start} bottles of beer.",
- f"Take one down and pass it around, {start-1} bottle of beer on the wall.",""])
- start -= 1
- elif start == 1:
- song.extend([
- f"{start} bottle of beer on the wall, {start} bottle of beer.",
- "Take it down and pass it around, no more bottles of beer on the wall.",""])
- start -= 1
- #print(song)
- elif start < 1:
- song.extend([
- "No more bottles of beer on the wall, no more bottles of beer.",
- "Go to the store and buy some more, 99 bottles of beer on the wall."])
- break
- #print(song)
- return song
Add Comment
Please, Sign In to add comment