Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 619 Bytes

File metadata and controls

8 lines (5 loc) · 619 Bytes

Facts Only - Solution

Which of the following statements regarding type hinting is true?

  1. Type hinting is a special syntax used in functions and variables declarations to provide the developer with the information on the type of the variable - True
  2. Type Hinting is a fairly new feature of Python, introduced in Python 3 - True. It was introduced with Python 3.5 to be accurate
  3. Python enforces type hints meaning you can set a variable with the type hint of string with an integer value - False. Python doesn't enforce type hints, meaning you can still change the variable type even with specific type hint