In many posts, I could find some very elegant way of attacking the problem that I had never thought of. It was clear that there are nuggets of wisdom buried in "stack overflow" and mostly it would be difficult to go back and look at them. So I started by collecting weekly wisdoms on topic of my interest which usually is "Python programing". The good thing is that they are going to be unrelated snippets and bad thing is that their isn't any central theme to these posts.
Starting with this post, I will try to pull some neat solutions provided there for reference and later perusal.
#1 : round-up numbers to two decimal points
anFloat = 1234.55555 print round(anFloat, 2) # Output : 1234.5599999999999 rounded = "%.2f" % round(anFloat, 2) print rounded # Output: '1234.56'