Voting and the land of ice and snow.

November 04, 2008 at 08:20 PM | categories: python, personal | View Comments

Today is election day in the states. Lots of free coffee and donut offers floating around for those few people wearing their I voted sticker. Tomorrow I head out for my trip to Iceland. From Florida to Iceland in the Fall, makes perfect sense right? It was an excuse for me to purchase some new warm wear and jogging shoes, have to keep up with the exercise routine even on vacation. I should be able to maintain the blog from there keeping the spirit of blog every day in November. Snippet of Python In an effort to always have something a little Python related in all my posts, here is how to use list comprehension to filter out no value items from a list. [sourcecode language="python"] foo = ["A", "", "C", None, "E"] bar = [i for i in foo if i] print bar ['A', 'C', 'E'] [/sourcecode]

blog comments powered by Disqus