Infer (deduct) the type
- We can define every variable, but in many cases Python will infer them from other definitions.
examples/python-types-at-pyweb-2025-01/deduct_type_of_variable.py
def add(x: int, y: int) -> int: return x + y def display(text: str): print(text) first = 19 second = 23 result = add(first, second) display(result)