''.join(list(filter(lambda c: c!='b', 'abasfdbbbadfbg')))
not c in lst
.keys = ['photo_2560', 'photo_1280', 'width', 'album_id', 'post_id', 'date', 'owner_id', 'photo_807', 'photo_604', 'id', 'photo_130', 'text']
max(map(lambda s: int(s[6:]), filter(lambda s: s[:6]=='photo_', keys)))
'photo_'+str(max(map(lambda s: int(s[6:]), filter(lambda s: s[:6]=='photo_', keys))))
>>> a = {'3':0, 'bbb':0}
>>> a
{'3': 0, 'bbb': 0}
>>> a['3'] += 2
>>> a['bbb'] += 8
>>> a
{'3': 2, 'bbb': 8}
>>> a['3'] += 3
>>> a
{'3': 5, 'bbb': 8}
def chess(a,b):
return ((a[0]+a[1])&1 == (b[0]+b[1])&1);
print 'yes' if chess((1,2),(0,2)) else 'no';