What are type hints in Python?
Correct answer
B. Optional annotations indicating expected types
10 views
B. Optional annotations indicating expected types
10 views
Type hints are not enforced at runtime but help tools like mypy and IDEs.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is B? Ask here and get an explanation.