Some inputs are missing when submitting marks form. That's why it returns errors like that:
Problem inserting mark for studentXYZ
called with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are needed
Problem inserting mark for studentABC
called with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are needed
Problem inserting mark for studentMNQ
called with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are neededcalled with 2 bind variables when 3 are needed
At the end of get_marksheet function, it should iterates over all matched inputs. But only first input of the list is selected since I used soup.find instead of soup.find_all method.
Some inputs are missing when submitting marks form. That's why it returns errors like that: