xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to get data type of variable in Python
Python Online Editor
Execute Code
More Python Sample Codes
variable_1 = "Python is a great programming language." # string type data #type() is used to get type print(type(variable_1)) # output: <class 'str'> variable_2 = 205 # integer type data print(type(variable_2)) # output: <class 'int'> variable_3 = 102.75 # float type data print(type(variable_3)) # output: <class 'float'>