input: from typing import List
  
  def linearSearch(arr: List[int], value: int) -> int:
      """ Performs a linear search on the given array to find the index of the specified value.
      If the value is found, returns the index. If the value is not found, returns -1.
      
      >>> linearSearch([5, 3, 7, 2], 7)
      2
      >>> linearSearch([5, 3, 7, 2], 8)
      -1
      """
      for i in range(len(arr)):
          if arr[i] == value:
              return i
      return -1
output:     for i in range(len(arr)):
          if arr[i] == value:
              return i
      return -1