title: how i can solve "TypeError: string indices must be integers? " when check if the key exist in the dict
body: <p>i want to check if the input key match with Dictionaries</p>
  <pre><code>def update_details():
      input_detais = input(&quot;please select which feild you want to change &quot;)   
      for detais in store_group_details:
          if detais['type'] == input_detais:  
              print (&quot;exist&quot;)
  
  </code></pre>
  <p>her the store_group_details</p>
  <pre><code>store_group_details={'app_group3': ['calculater', 'google'],
   'Date': '2022-02-14',
   'Time': '03:00:00', 
  'group name': 'test1'} 
  </code></pre>