PYTHON DATA TYPES
PYTHON DATA TYPES
Nonetype Tuple
List
Dic
ng tion
Stri ar y
a n Se
oole t
B
By
at
Fl o
te
s
Byt
r
ege
ear
Int
ray
Data types List
Integer(int):- Represents whole numbers without decimals.
Examples 1, 2, -3.
Float (float):- Represents numbers with decimal points or in
exponential form. Example 3.14, -0.25.
String (str):-Represents sequences of characters enclosed in
single (' ') or double (" ") quotes. Example 'hello', "world“.
Boolean (bool):-Represents truth values, either True or
False, used for logical operations and comparisons.
List (list):-Represents ordered collections of items, which can be of
different data types. Lists are mutable, meaning their elements can be
modified. Example: [1, 2, 'hello', True].