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.
def checkMyValues(*args):
if isinstance(args, str) == True:
print("it is a string!")
checkMyValues("haime")
but this does not output "it is a string!".
any help will be much appreciated.Thanks