Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if variable is string

# python 2
isinstance(s, basestring)

# python 3
isinstance(s, str)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #variable #string
ADD COMMENT
Topic
Name
7+1 =