def greater(arr, comp):
    """ Compares all the elements of the an array to the number comp and generates a list which is greater than the number comp.
	
	- **parameters**, **types**, **return** and **return types**::
		:param arr: Array on which the operation is to be done.
		:param comp: The number to which the array elements is to be compared.
		:type arr: floats[]
		:type arr: float
		:return: float[]
	"""
    result = []
    for idx in range(len(arr)):
        if arr[idx] > comp:
            result[idx] = arr[idx]
    return result
