#7 - Data Types
Data Types
Our next step is going to be Data Types. But first, let's know what are data types.
What are data types?
Data types in Python
In python, we have 14 different data types in 7 categories.
Text Type: |
str |
Numeric Types: |
int, float, complex |
Sequence Types: |
list, tuple, range |
Mapping Type: |
dict |
Set Types: |
set, frozenset |
Boolean Type: |
bool |
Binary Types: |
bytes, bytearray, memoryview |
To get a data type of a value use type() function.
----------------------------------------------
code:-
print(type(50))
output:-
<class'int'>
------------------------------------------------
Interesting 🤔
ReplyDeleteso helpfull thank you so much
ReplyDeleteNice content
ReplyDelete