Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check datatype python

a = 123
 
b = 'Hello'
 
print('Is a an instance of str?', isinstance(a, str))
print('Is b an instance of str?', isinstance(b, str))
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #check #datatype #python
ADD COMMENT
Topic
Name
7+5 =