title: Python if statement if variable value is string or any Type
body: <p>How can I make an if statement that will ask if my variable contains string or any type then if it is, then it will execute the code under my if statement.
  Below code is just my experimentation but it does not work the way I hope it'll be.</p>
  
  <pre><code>def checkMyValues(*args):
      if isinstance(args, str) == True:
          print("it is a string!")
  
  checkMyValues("haime")
  </code></pre>
  
  <p>but this does not output "it is a string!".</p>
  
  <p>any help will be much appreciated.Thanks</p>