Python Data Types
Integer 10 -3
Numbers
Floats 1.8 -6.973
Booleans True False
Strings ‘Hi there!’ "Hi there!”
C o ve
red L
Complex Types like Dictionaries & Objects ater
Numbers
Integer Float
10, -55, 5421 1.591, -0.81, 5000.0
As big (small) as supported by your As big (small) as supported by your
Memory and Operating System Memory and Operating System
Convert other types to Integer with Convert other types to Float with
int() float()
Write long numbers in easily readable way: 1_000_000.0
Strings
Store Text (Multiple Characters)
"""some multiline
'some text' "some text"
text"""
Choose one and stick with it
As big (small) as supported by your Memory and Operating System
Convert other types to String with str()
Access Characters via Index: my_string[1]
Special Methods like replace()