Type
- Michael Tomaino
- Dec 2, 2016
- 1 min read
Type is an interesting concept.
In normal life, we don't usually distinguish between numbers for counting (1, 2, 3, 4 ...) and numbers for keeping track of decimal values (3.14159, 1.50, etc).
In computers, however, these are very different animals.
To further complicate the issue, "456" is not the same as 456. That's because of type.
Type is the concept that different values are not entirely compatible and thus serve different purposes to the computer.
The basic types we'll be working with are:
int - integers
float - decimal values
str - strings of text
bool - boolean values of True and False





Comments