Back to quizzes
Type Hints & mypy Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What is the primary purpose of type hints in Python?
A
To indicate the expected data types of function parameters and return values.
B
To improve the performance of the code.
C
To enable dynamic typing.
D
To create complex data structures.