-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbottlesong.py
More file actions
32 lines (26 loc) · 939 Bytes
/
bottlesong.py
File metadata and controls
32 lines (26 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
bottles = int(raw_input("""This is the patended lyrics generator for humanity's spicy new single, The Beer Wall\n
How many bottles would we be singing about here? """))
print "This is the patended lyrics generator for humanity's spicy new single, The Beer Wall"
bottles
while bottles > 2:
print ("""
%d bottles of beer on the wall
%d bottles of beer!
You take one down, pass it around,
%d bottles of beer on the wall!\n""") %(bottles, bottles, bottles - 1)
bottles -= 1
if bottles == 2:
print ("""
2 bottles of beer on the wall
2 bottles of beer!
You take one down, pass it around,
1 bottle of beer on the wall!\n""")
bottles -= 1
if bottles == 1:
print ("""
1 bottle of beer on the wall
1 bottle of beer!
You take one down, pass it around,
No more bottles of beer on the wall!\n""")
if bottles < 1:
print "That's a negabottle there, can't sing about that"