Data Types in Python
By Sam Russell
Integer
An integer is a whole number that can either be positive, negative or zero. This means that numbers like 12, 0, -18 and 18372 are all integers. They cannot however have a decimal point. Integers are also a commonly used data type in computer programming
String
A string is a data type used in programming, such as an integer but it is used to represent text rather than numbers. It is comprised of a set of character that can also contain spaces and numbers, for example the word "dog" and the phrase "I walked 3 dogs" are both strings. Even "12345" could be considered a string.
List
A List is an abstract data type that represents an ordered sequence of values, the same value can always appear more than once. Lists are a basic example of containers, as they contain other values. If the same value occurs multiple times, each occurrence is considered a distinct item. Many programming language provide support for list data types.
Character
a character is a unit of information that roughly corresponds to a grapheme or a unit, or symbol, such as in an the alphabet. Examples of characters include letters, numerical digits, common punctuation marks (such as "." or "-"), and whitespace.
Boolean
The term Boolean often encountered when doing searches on the internet , refers to a system of logical thought developed by the English mathematician and computer pioneer, George Boole. Who developed Boolean, Booleans are often used in programming and in Internet search engines. Boolean expressions are expressions that result in the value of either TRUE or FALSE.
Float
The float data type is stored as a four-byte, single-precision, floating-point number. It represents a single-precision 32-bit value. Float can represent numbers as large as 3.4E+38 (positive or negative) with an accuracy of about seven digits, and as small as 1E-44.