I was watching Brandon Rhodes talk on Dictionary where I found him using a generator expression
diff = ('^ '[a==b] for a,b in zip(k1, k2))
where k1 and k2 are binary representations of some numbers. For every bit in k1 and k2 which are not identical this generator expression puts a '^ ' to mark the position. I haven't been able to understand this expression. What it means? 
 
    