> if python >= 2.5: > b if b != 0 else 10 Diky, zafungovalo. a = { 'faa': 1 } print ( a['foo'] if 'foo' in a else 10 ) -- Dusan