just a guy made of dots and lines (crs) wrote,
just a guy made of dots and lines

xkcd props

Ooh, I got a mention on Randall Munroe's blag. Now I know I've arrived.

I think I'm actually really proud that my script produced quite readable output, like so:

$ python appetizers.py 
7 orders of mixed fruit: $15.05
1 order of mixed fruit, 2 orders of wings, 1 sampler plate: $15.05
His script just printed out comma-separated sets of numbers of dishes.

Remember, everyone. Integer math is your friend.
  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.