title: TypeError: 'in <string>' requires string as left operand, not list Error
body: <p><strong>Code</strong></p>
  
  <pre><code>text = ["300000", "300001", "500000", "500001"]
  cnt = 0
  for line in f:
      if text in line:
          print(line.strip())
          cnt += 1
  if cnt:
      print(cnt, "count")
  else:
      print(text, "No data.")
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/users/PycharmProjects/Mining/Test Folder/Test2.py", line 10, in &lt;module&gt;
      if text in line:
  TypeError: 'in &lt;string&gt;' requires string as left operand, not list
  </code></pre>
  
  <p>Why this error occurs?</p>