Python Data Types

Data types in a programming language indicate what kind of data can be processed by the programming language. For example, python data types indicate the types of data that can be processed by python. If this still sounds abstract to you, I'll show you an analogy: You can of course tell which characters are numbers and which characters are letters. For example, you know that the character 2 is a number while hi is a letter/word. You also know that numbers can be added to other numbers, but a word cannot be added to other words. Well, just like you, programming languages ​​also need to recognize "numbers" and "words". However, the naming system is slightly different. In programming languages, numbers are known as "Numbers" and words are known as "strings".

In the python programming language, the Numbers data type is divided into 2 types, namely Integer (integer) and float (fraction).

In addition to numbers and strings, there is another data type called the boolean data type. This data type appears when we declare a comparison. The value of the boolean data type is only 2, namely true or false. For example with the expression 2==3 (here you compare whether the number 2 is the same as the number 3). With that expression, the boolean value true will appear. This may be quite complicated to explain, but as you read my next articles, you will understand this data type.