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