Issue regarding one of python Code

def InsertData(name,email,city):
conn = CreateConn() # Creating connection
cursor = conn.cursor()
args = (name,email,city)
query = “Insert into student(name,email,city)values(%s,%s,%s)”
cursor.execute(query,args)
conn.commit() # Saving the data using commit function
print(“Data inserted”)
conn.close()

n = input(“Enter your Name :”)
e = input(“Enter your Email :”)
c = input(“Enter your City :”)

InsertData(n,e,c)