Annoyingly, my professor's test is calling my function directly. But, how am I supposed to open (and close) this file without overwriting?
I could append, but the problem is this runs multiple tests, all checking for different values.
I pass the first 3 tests, because those go through my main() function. However the last bunch of tests just call my function directly.