Blog Introductions
In this blog contains tutorials about HTML Tutorials, Python Tutorials, CSS Tutorials, How to, PHP Tutorials, Java Tutorials, C++ Tutorials, Tutorials, Examples, Source code,Learning,
Tips and Software development services. Python Data types and Variable Types | Python tutorials Bestitworriors
Python Data types and Variable Types
Python Data types and Variable Types | Python tutorials Bestitworriors - Python data types refer to type of variables.Data types means which type of data store in variable either its a text or a number or boolean or a fload number etc.Python support text type(string) and numaric type(int , float ,complex) and sequence type (list , tuple , range) and maping type (dist) and set type (set , frozenset ) and boolean type (bool ) and binary types ( bytes , bytearray , memory view ) and none type (NoneType).
Some Key Points of Python Data Types
- Python varible data type is known as data type
- Python support Text Type (string)
- Python support Numaric Type (int , float , complex)
- Python support Sequence Type (list , tuple , range)
- Python support Maping Type (dist)
- Python support Set Type (set , frozenset )
- Python support Boolean Type (bool)
- Python support Binary Type (bytes , bytearray ,memory view)
- Python support None Type (None Type)
- You can get the type of variable by using type(variablename) function
Code
var1 = 5
print(type(var1))
var2 ="Best It Worrior"
print(type(var2))
var3 = 10.3
print(type(var3))
var4 =[1,2,3,4,5,6,7,8,9]
print(type(var4))
OutPut
int
str
float
list
str
float
list
0 Comments