I have wrote a code in python 2.7, but im not sure how to write it in python 2.6, bcz its give some error when it run on 2.6
a = {0:1234}
b = {0:1500}
c = {key: b[key] - a.get(key, 0) for key in a.keys()}
d = {x:y for x,y in c.items() if y!=0}
print d
Error
./run.py -e dev -s atlas File "./run.py", line 59 Lz_ofstes_subtract = {key: lz_offset_2[key] - lz_offset_1.get(key, 0) for key in lz_offset_1.keys()} ^ SyntaxError: invalid syntax