for name in ('AlixaProDev','Salamn'):
cursor.execute("SELECT count(*) FROM Student WHERE name = ?", (name,))
db_result=cursor.fetchone()[0]
if db_result==0:
print('There is no Student named %s'%name)
else:
print('Student %s found in %s row(s)'%(name,db_result))
Copy Code