input: from typing import List
  
  
  def has_close_numbers(numbers: List[int], threshold: int) -> bool:
      """ Check if in given list of numbers, are any two numbers closer to each other than
      given threshold.
      >>> has_close_numbers([1, 2, 3], 2)
      True
      >>> has_close_numbers([10, 20, 30, 40], 5)
      False
      """
output:     for i in range(len(numbers)):
          for j in range(i + 1, len(numbers)):
              if abs(numbers[i] - numbers[j]) <= threshold:
                  return True
      return False