title: Python - if StringSet has a String in it
body: <p>I have searched quite thoroughly and have not found a suitable solution. I am new to Python/Programming, so I appreciate any advice I can get:</p>
  <p>I am trying to search a string from StringSet, here is what i am trying to do but not getting the value.</p>
  <pre><code>string_set = {'&quot;123&quot;, &quot;456&quot;, &quot;789&quot;'}
  value = '123'
  
  values_list = []
  
  def fun():
      for i in string_set:
           if i in value:
               output=LookupTables.get('dynamo-table', i, {})
               
      return output
  
  fun()
  </code></pre>
  <p>Using the above if it value is in the stringset then it will return the value which is in my dynmodb table.
  Nothe: There could be more than 5000 values in my table so i wanted to get earliest possible return.</p>