Not sure what you mean by saying "import variables X Y". You want to prepare a list or read them from file or something.If list is ok for you, then code below should work (assume that coords are floats). If you want to read them from file the simply prepare list from text file before for loop:
points = []
f = open('C:\\coords.txt', 'r')
for line in f.readlines():
x, y = [coord.strip() for coord in line.split(';')] #suppose coords are delimited with semicolons
points.append((float(x), float(y)))
f.close()
from osgeo import ogr
LandUse = ogr.Open("C:\\Python26\\ArcGIS10.0\\landuse shpfile (polygon)\\landuse.shp")
lyr = LandUse.GetLayerByName("landuse data_ypan")
lyr.ResetReading()
points = [(x1,y1), (x2, y2),...,(xn, yn)]
for coords in points:
point = ogr.CreateGeometryFromWkt("POINT(%f %f)" % coords)
for feat in lyr:
geom = feat.GetGeometryRef()
if geom.Contains(point):
sm = feat.GetField(feat.GetFieldIndex("Land_Group"))
print sm
CheersArek