title: Python: Does key exist in dictionary (Python 3.1)
body: <pre><code>arguments=dict()
  if (arg.find("--help") == 0):
    arguments["help"] = 1
  if help in arguments:
    #this doesnt work
  
  print(arguments["help"]) # This will print 1
  </code></pre>
  
  <p>Cannot find out if a certain key has been defined. .has_key has been deprecated in 2.7 and I haven't find other solution than this. What am I doing wrong?</p>