static typing in python code example
Example: static typing in python
# Python will always remain a dynamically typed language.
# However, PEP 484 introduced type hints, which make it possible to
# also do static type checking of Python code.
name: str = 'Bob'
age: int = 32
rating: float = 7.9
is_premium: bool = True