input: from typing import List
  
  def raise_exception_if_not_int(numbers: List[int]) -> None:
      """ Modify the function to raise an exception if any element in the input
      list is not an integer.
      >>> raise_exception_if_not_int([1, 2, 3])
      >>> raise_exception_if_not_int([1, 'two', 3])
      Traceback (most recent call last):
      ...
      TypeError: Input must be an integer
      """
output:     for num in numbers:
          if not isinstance(num, int):
              raise TypeError("Input must be an integer")