Data types are an essential concept in programming. They determine the kind of data that a variable can hold. Below is a list of common data types in programming:
- Integer: Whole numbers, positive or negative, without decimals. (e.g.,
5
,-3
) - Float: Numbers with decimals. (e.g.,
3.14
,-0.001
) - String: A sequence of characters. (e.g.,
"Hello"
,'"World"'
) - Boolean: Represents true or false values. (e.g.,
True
,False
)
For more information about data types and how to use them, you can read our detailed guide on Data Types.
Here is a visual representation of some common data types: