title: python3 why is a 'string' not a str?
body: <p>I need this little snippet to output "this is a string" (i need myVar to satisfy the condition is str)</p>
  
  <pre><code>myVar = 'some-string'
  if myVar is str:
      print('this is a string')
  else:
      print('this is NOT a string')
  </code></pre>
  
  <p>but when i run it, it keeps outputting "this is NOT a string".
  I don't understand, can someone please point out what I'm doing wrong and how to fix it?</p>
  
  <p>I've also tried:</p>
  
  <pre><code>myVar = str('some-string')
  if myVar is str:
      print('this is a string')
  else:
      print('this is NOT a string')
  </code></pre>
  
  <p>and it also doesn't work.</p>
  
  <p>I can't use isinstance() to check anything, I MUST keep the conditional of</p>
  
  <pre><code>if myVar is str:
  </code></pre>
  
  <p>and this conditional must evaluate to True.</p>
  
  <p>i've also tried this:</p>
  
  <pre><code>if 'some-string' is str:
      print('this is a string')
  else:
      print('this is NOT a string')
  </code></pre>
  
  <p>and this also outputs "this is NOT a string"</p>
  
  <p>I don't know what i need to do to feed it something which satisfies this condition</p>