One of the more important aspects of programming, data types describe the nature of a value or data that is contained in a variable or even a constant. Variables can have different and changing values, while constants will be assigned a value that doesn’t change. There are several different data types and they generally fall into two different categories. They can be either scalar or compound.