Basic Python Syntax



Basic Data Types



Python type()Values
int-128, 0, 42
float-1.12, 0, 3.14159
boolTrue, False
str"Hello"
bytesb"Hello\xf0\x9f\x98\x8e"


type(3)
<class 'int'>

type("What is this?")
<class 'str'>


Index