def search(data, element):
  """Linear search for element in a list.

    Parameters
    ----------
    data : list with elements
    element : element to look for
    
    Returns
    -------
    index : position of the element if it is present, otherwise -1
  """
  for index in range(len(data)):
    if data[index] == element:
      return index
  return -1