SyntaxFix
Write A Post
Hire A Developer
Questions
Another method is has_key() (if still using Python 2.X):
has_key()
>>> a={"1":"one","2":"two"} >>> a.has_key("1") True