I have a list which I get from the form:
hobby = request.form.getlist('hobby')
The list is something like:
hobby = [sports, music, coding]
I would like to store this list in mysql server, so I have tried:
cursor.executemany('INSERT into hobby(list,a_id) VALUES(%s,%s)', (hobby, current_user.id))
return '<h1> Inserted </h1>'
list, it overrides thelistclass reference.