Computer Science
Answer
Data types are used to identify the type of data a memory location can hold and the associated operations of handling it. The data that we deal with in our programs can be of many types like character, integer, real number, string, boolean, etc. hence programming languages including Python provide ways and facilities to handle all these different types of data through data types. The data types define the capabilities to handle a specific type of data such as memory space it allocates to hold a certain type of data and the range of values supported for a given data type, etc.
Related Questions
How many string types does Python support? How are they different from one another?
How are these numbers different from one another (with respect to Python)? 33, 33.0, 33j, 33 + j
How many integer types are supported by Python? Name them.
The complex numbers have two parts : real and imaginary. In which data type are real and imaginary parts represented ?