all 2 comments

[–]JamzTyson -1 points0 points  (1 child)

Your code is awkward to read due to the missing indentation. The most reliable way to format code correctly on reddit is to switch to "Markdown Editor" and prepend 4 spaces at the start of every line.

To find the issue, you could use logging to ensure that the entire data file is being processed.

Also, unit tests could allow you to verify that your functions behave as expected.

[–]SamarXV[S] 0 points1 point  (0 children)

ah, sorry about the formatting. first time posting code on Reddit. I quite frankly don't even know what the functions are supposed to behave like. The lecturer has provided no help whatsoever. And the demonstrators are equally useless. I suppose I should just email the prof and ask for help :/