Question · Python course · Module 3: Object-Oriented Programming

Type Hints

Type hints in Python are:

Answer options

  • Mandatory and enforced
  • Optional, used for documentation and tools
  • Only for numbers
  • Only available in Python 2

You can check the correct answer by solving this task in the CodeWorlds game.