Write a program to update an entry in database.

import MySQLdb

db=MySQLdb.connect(‘localhost’,’pardeep’,’pardeep321′,’temp’)
curs = db.cursor()

sql = “update employee set AGE=AGE-10 where INCOME =’%s'” % (55000)
upd = curs.execute(sql)
db.commit()