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