Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

and I have also tried when I try without comma, I got this and when I try with c

ID: 3597932 • Letter: A

Question

and I have also tried

when I try without comma, I got this

and when I try with comma, I got

Traceback (most recent call last):
File "mp2.py", line 54, in <module>
cur5.execute(insert,(10003,'Tustin gallery','average'))
File "C:python27libsite-packagesMySQLdbcursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "C:python27libsite-packagesMySQLdbconnections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.InterfaceError: (0, '')

any idea how to fix it?

Explanation / Answer

1.

2.

cur4.execute("SELECT * FROM artist WHERE artist.name LIKE %s" % con.literal(name))

4..