# assume we have a db_cursor objecti = int(input(“Enter the…