import mysql.connector

db = mysql.connector.connect(
  host="localhost",
  user="admin",
  passwd="admin",
  database="toko_mainan"
)

cursor = db.cursor()
sql = "DELETE FROM customers WHERE customer_id=%s"
val = (1, )
cursor.execute(sql, val)

db.commit()

print("{} data dihapus".format(cursor.rowcount))
d57bc179e82ef312448168d6d5ffce60491139a3
<mask token>

<mask token>
cursor.execute(sql, val)
db.commit()
print('{} data dihapus'.format(cursor.rowcount))

<mask token>
db = mysql.connector.connect(host='localhost', user='admin', passwd='admin',
    database='toko_mainan')
cursor = db.cursor()
sql = 'DELETE FROM customers WHERE customer_id=%s'
val = 1,
cursor.execute(sql, val)
db.commit()
print('{} data dihapus'.format(cursor.rowcount))

import mysql.connector
db = mysql.connector.connect(host='localhost', user='admin', passwd='admin',
    database='toko_mainan')
cursor = db.cursor()
sql = 'DELETE FROM customers WHERE customer_id=%s'
val = 1,
cursor.execute(sql, val)
db.commit()
print('{} data dihapus'.format(cursor.rowcount))

import mysql.connector

db = mysql.connector.connect(
  host="localhost",
  user="admin",
  passwd="admin",
  database="toko_mainan"
)

cursor = db.cursor()
sql = "DELETE FROM customers WHERE customer_id=%s"
val = (1, )
cursor.execute(sql, val)

db.commit()

print("{} data dihapus".format(cursor.rowcount))