Answers for "static typing in python"

1

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
Posted by: Guest on April-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language