I couldn't connect to mysql database

import pymysql

def createconn():

return pymysql.connect(host="localhost",database="learnvern",user="root",password="123456",port=3306)

print(“hello”)

def insertdata(slno,name,subject,marks):

conn = createconn()

cursor = conn.cursor()

args = (slno,name,subject,marks)

query = "insert into student(slno,name,subject,marks)values(%s,%s,%s)"

cursor.execute(query,args)

conn.commit()

print("data inserted")

conn.close()

sl=input(“enter the sl no:”)

n=input(“enter the name:”)

su=input(“enter the subject:”)

m=input(“enter the mark:”)

insertdata(sl,n,su,m)