title: Python Dictionary Check if Key Exists
body: <pre><code>@commands.command(aliases=['lookup'])
      async def define(self, message, *, arg):
          dictionary=PyDictionary()
          Define = dictionary.meaning(arg)
          length = len(arg.split())
          if length == 1:
              embed = discord.Embed(description=&quot;**Noun:** &quot; + Define[&quot;Noun&quot;][0] + &quot;\n\n**Verb:** &quot; + Define[&quot;Verb&quot;][0], color=0x00ff00)
              embed.set_author(name = ('Defenition of the word: ' + arg),
              icon_url=message.author.avatar_url)
              await message.send(embed=embed)
          else:
              CommandError = discord.Embed(description= &quot;A Term must be only a single word&quot; , color=0xfc0328)
              await message.channel.send(embed=CommandError)
  </code></pre>
  <p>I want to do check if <code>Noun</code> and <code>Verb</code> is in the dictionary <code>Define</code>, because when a word only has lets say a Noun in its definition then it throws an error because I am trying to bot output the Noun and Verb, see what I am getting at. I am new to dictionaries and any help is much appreciated</p>