99 Bottles of Beer Computer Programs.

Alex

99 Bottles of Beer website has a collection of 1,031 programs using various computer languages which all generate the lyrics of the song 99 Bottles of Beer.

Here's the program in python:

#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-

"""
99 Bottles of Beer (by Gerold Penz)
Python can be simple, too :-)
"""

for quant in range(99, 0, -1):
     if quant > 1:
           print quant, "bottles of beer on the wall,", quant, "bottles of beer."
           if quant > 2:
                 suffix = str(quant - 1) + " bottles of beer on the wall."
           else:
                 suffix = "1 bottle of beer on the wall."
     elif quant == 1:
           print "1 bottle of beer on the wall, 1 bottle of beer."
           suffix = "no more beer on the wall!"
     print "Take one down, pass it around,", suffix
     print "--"

Link - via Miss Cellania


Comments (0)

One CRUCIAL factor is not included in this $100 comparison by state -- personal income tax. BLS and the Tax Foundation have no way to calculate that in the formula, because the tax differs dramatically depending on what level of income you have.

For instance, while 7 states have zero income tax, uber-progressive (well progressive EXCEPT about Uber) California has a personal income tax that's, well, uber progressive -- varying from NEGATIVE (cash credits) to 13.3% -- by FAR the highest in the nation -- impossible to calculate in the formula.

Also ignored as impossible to calculate are fees, fines, and other state and local "non-purchase" levies by government. Fee-crazy California again "excels" in this area.

Hence the hypothetical $100 is AFTER-tax dollars. Other taxes included in a purchase (sales, excise, etc) ARE included in the comparison, but income tax is not. The REAL total difference between the states is often significantly higher as a result, but not included in this study.
Abusive comment hidden. (Show it anyway.)
  1 reply
Login to comment.
Email This Post to a Friend
"99 Bottles of Beer Computer Programs."

Separate multiple emails with a comma. Limit 5.

 

Success! Your email has been sent!

close window
X

This website uses cookies.

This website uses cookies to improve user experience. By using this website you consent to all cookies in accordance with our Privacy Policy.

I agree
 
Learn More