Running this piece of code returns a type error of 'can't concat tuple to bytes', but in my codes I don't see where the bytes are coming from, hence unsure how to fix my codes. Any pointers on which line of codes is in the form of bytes?
def array2python():
mfcc = "US"
number = 8 #could be any number from 0 to 9
t = (number, mfcc)
conn = pymysql.connect( host=hostname, port = port, user=username, passwd=password, db=database, charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor )
cur = conn.cursor()
query = ('INSERT INTO audioFiles VALUES (?,?)', t)
cur.execute(query)
conn.close()