title: how do I ignore a same value of a key in dictionary? (Python)
body: <pre><code>cnt_lst = {     'Jojo': {'Name ': &quot;Jojo&quot;,
                              'Phone': &quot;0896&quot;,
                              'Email': &quot;Jojo@email.com&quot;},
                  'Johan': {'Name ': &quot;Johan&quot;,
                              'Phone': &quot;0878&quot;,
                              'Email': &quot;2@email.com&quot;},
                  'John': {'Name ': &quot;John&quot;,
                              'Phone': &quot;0815&quot;,
                              'Email': &quot;3@email.com&quot;}
                  }
  
  search = &quot;jo&quot;
  info = False
  
  for key, value in cnt_lst.items():   
      for subject, score in value.items():
          if search in score:
              info = True
              print(&quot;=&quot; * 20)
              for subject, score in value.items():
                  print(subject,' : ',score)
  
  if not info:
      print(&quot;\nNo info was found!&quot;)
  </code></pre>
  <p>The output of the above code is:</p>
  <pre><code>====================
  Name   :  Jojo
  Phone  :  0896
  Email  :  Jojo@email.com
  ====================
  Name   :  Jojo
  Phone  :  0896
  Email  :  Jojo@email.com
  </code></pre>
  <p>instead, I want it to be:</p>
  <pre><code>====================
  Name   :  Jojo
  Phone  :  0896
  Email  :  Jojo@email.com
  </code></pre>
  <p>I believe this happen because when I search for &quot;jo&quot; there is 2 value of &quot;jo&quot; which is in &quot;Name&quot; and &quot;Email&quot;</p>
  <p>So, how do I ignore one of them?</p>