Level
Find the error
-
def sum():
-
  a: int = 10
-
  b: float = '12.34'
-
  return a + b

Variable Assignment with Type Annotations

This exercise focuses on understanding type annotations in variable assignments. Review the given code lines for correct and incorrect uses of type hints according to Python's typing system. Determine the errors in type assignments and recognize properly annotated variables.