I was looking at some code on the web, and I saw some code I'm not used to. The one that most called my attention was:
if not isinstance(string, str):
    #dosomething
What would be the difference if I did instead:
if type(string)!=str:
    #dosomething
 
     
     
    