for name in (['AlixaProDev','Salman']):
cursor.execute("SELECT rowid FROM Student WHERE Name = ?", (name,))
data=cursor.fetchone()
if data is None:
print('No Student with The Name: %s'%name)
else:
print('One Other Student with %s Name Found rowid %s'%(name,data[0]))Copy Code