(cursor, before, after)
| 70 | print('-' * 60) |
| 71 | |
| 72 | def rename_pets(cursor, before, after): |
| 73 | update_cmd = f"update myvalues set pet='{after}' where pet='{before}'" |
| 74 | cursor.execute(update_cmd) |
| 75 | print(f'Did: {update_cmd}') |
| 76 | |
| 77 | def remove_pets(cursor, pet): |
| 78 | delete_cmd = f"delete from myvalues where pet='{pet}'" |