Data Types and Variables
Data Types String: string data types are a series of characters enclosed in single ( ' ) or double ( " ) quotes. Example: "Hello World!", "ABCD", "1234" Number: Numbers are whole numbers or numeric values. We also call them integers. Example: 123, 456, -1,-2,0 Float: Floats are decimal type numbers. Example: 1.2, 2.5, 3.14, -3.14 etc. Boolean: Booleans are also called Binary values. This datatype has only two values True and False. Value for True is 1 and Value for False is 0. Operators Operators are applied on values of different data types to change them. For example + (plus) operator can be used to add two numbers. Below are the common operators. + - * / % // Behavior of an operator changes based on the datatypes. For example a plus operator is used to add two numeric values. 2 + 2 Output 4. However, a plus operator with string concatenates them. "abc" + "cdf" Output "abccdf".