Documentation

isinstance

Takes two arguments and returns True if the first argument is the str type of the second argument. For example, isinstance('foo', 'str') == True. The first argument must be a value of some kind, while the second argument must be a string.