I've defined a python function to take input raster and elevation and output path. The function should return raster with two values 0 for elevation equal to and greater than given elevation and 1 for rest of the pixels. This is what I've done so far:
import arcpy
arcpy.env.overwriteoutput=True
from arcpy.sa import*
def getRaster(input, elevation, outputpath):
inraster=input
cutoffelevation=elevation
arcpy.checkExtension('Spatial')
outputraster=Raster(inputraster)>cutoffelevation
outputraster.save(outputpath)