Si le type est String Python
isinstance(s, str)
Fair Fly
isinstance(s, str)
# python 2
isinstance(s, basestring)
# python 3
isinstance(s, str)