A data type or simply a type is a property of data, that tells the language processor (compiler, interpreter) how we are going to use this data.
It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are instances (object) of these classes.
Python has primarily 5 built-in data types which are divided as mutable & immutable: Numbers
Sequence
Set
Boolean
Dictionary Numeric data types hold numerical values.
There are 3 sub-types which are as follows:
Integers,
Float,
and Complex Numbers
A sequence is the ordered collection of similar or different data types. S
equences allow storing multiple values in an organized and efficient fashion.
There are several sequence types in Python –
String, List, and Tuple
Read more about data types and their classification in my blog https://k21academy.com/python14
Join our Free Class to know more about it.