Answers for "how to check datatype of a variable in python"

1

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))
Posted by: Guest on July-27-2021

Code answers related to "how to check datatype of a variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language