Learn Before
Concept
Data Types in Python
Values can be classified into different classes, known as data types:
- Integer (int) - 1, 4, 7, 24, 578, etc.
- Float (float) - 2.2, 2.59, 3.14159, etc.
- String (str) - *Any combination of characters in quotes
- List (list) - An ordered, mutable collection of items
- Tuple (tuple) - An ordered, immutable collection of items
- Dictionary (dict) - An unordered collection of data with keys and values
- Boolean (bool) - True or False
The terms "data type" and "class" are often used interchangeably.
0
3
Updated 2021-06-08
Tags
Data Science