import mysql.connector

#connect to DB
mydb = mysql.connector.connect(
    host="localhost",
    user="root",
    password="root1234",    
    database="datarepresentation"
)

mycursor = mydb.cursor()

delete="delete from student where id = %s"
values = (1,)
mycursor.execute(delete, values)
mydb.commit()
print("Data deleted")