Make point layer with x and y coordinates

Discussion created by wtgeographer on May 7, 2014
I am trying to make point layer using a coordinates x and y values using arcpy.  Ultimately looking to supply arcpy.PointToRaster_conversion() with first parameter which calls for input feature class.  Similar to the following:
        for row in arcpy.da.SearchCursor(Output_polyline_features, ["OID@", "SHAPE@"]):

            # Print the current line ID
            print("Feature {0}:".format(row[0]))

            #Set start point
            startpt = row[1].firstPoint

            #Set Start coordinates
            startx = startpt.X
            starty = startpt.Y

            #Set end point
            endpt = row[1].lastPoint

            #Set End coordinates
            endx = endpt.X
            endy = endpt.Y

        End_Pts = arcpy.MakeXYEventLayer_management()

        #End pts raster
        arcpy.PointToRaster_conversion(End_Pts, "", End_Raster, "MOST_FREQUENT", "NONE", get_LCP(count))

Thanks in advance,