One of the great things about Python is the way you can easily juggle items around in collections — lists, dictionaries, sets — and the shortcuts you get when you combine them. For example, to get a unique collection of elements in a list: list(set(my_list)) will do it.
Similar things happen in Smalltalk but these nuggets of information are scattered around the net. So I thought I’d write up a translation crib sheet for us all.
Mathematician (PhD in Probability Theory).
Art lover (spent one excellent year studying painting and ceramics at Batley Art College).
Ex investment banker (2yrs of fixed-income exotics trading, 5 yrs of quantitative research, 2 yrs of inflation structuring).
Now busy as a quantitative software developer.
View all posts by Robert