x = 5 # Integer
y = "Hello" # String
z = 3.14 # Float
is_true = True # Boolean
Numbers
5
, -3
, 0
3.14
, -0.001
Strings
name = "Alice"
greeting = 'Hello World'
Booleans
is_active = True
is_admin = False
type(5) # <class 'int'>
type("Hello") # <class 'str'>
type(True) # <class 'bool'>
int("5") # 5
str(42) # "42"
float("3.14") # 3.14