<s_gherman at yahoo.com> wrote in message news:8nqfao$c1l$1 at nnrp1.deja.com... > How can I check that dict[n] exists or not already? > > I tried: > 1) if not dict[n] > 2) if dict[n] == None if not dict.has_key(n)