1# you can use the function type() which will returns the type of the variable
2A = "Hello world !"
3# here are some uses of it
4>>> type(A)
5<class 'str'>
6>>> type(A) is int
7False
8>>> type(A) is str
9True1a = 123
2
3b = 'Hello'
4
5print('Is a an instance of str?', isinstance(a, str))
6print('Is b an instance of str?', isinstance(b, str))
71To find the data type of data in Python, you use the type() function. You place the variable inside of the type() function and Python returns the data type