Jan-01-2023, 12:51 PM
That should work. You don't need argparse. The only thing here is that you read all the lines of the file "csvinput" in your program between lines 4 and 11. So when the program reaches line 18, there is nothing left to read. Solution: close the file after line 11 and re-open it before line 18.