99 Bottles of Soda
https://docs.python.org/2/library/string.htmlCreate a program to print out the following output:
99 bottles of soda on the wall, 99 bottles of soda!
So take one down, pass it around, 98 more bottles of soda on the wall!
98 bottles of soda on the wall, 98 bottles of soda!
So take one down, pass it around, 97 more bottles of soda on the wall!
97 bottles of soda on the wall, 97 bottles of soda!
So take one down, pass it around, 96 more bottles of soda on the wall!
...
3 bottles of soda on the wall, 3 bottles of soda!
So take one down, pass it around, 2 more bottles of soda on the wall!
2 more bottles of soda on the wall, 2 more bottles of soda!
So take one down, pass it around, 1 more bottle of soda on the wall!
1 bottle of soda on the wall, 1 bottle of soda!
So take it down, pass it around, no more bottles of soda on the wall!
It MUST use bottle singular for 1 bottle and bottles plural for 2 or more bottles!
Never heard this song before? Read the wiki article.
Hint:
To make bottle singular, use a conditional:
if numberofbottles ==1:
____print "bottle"
else:
Use a for loop with range()
See Slides
You can use {} and .format()
https://docs.python.org/2/library/string.html