Oct-02-2017, 01:41 PM
1. Open the file for reading, open output file for writing
2. Read the each line and parse it, replacing Y/N values
3. Write the new line in the output file
this can be done with basic file operations or you can use csv module
also tutorial on working with files
https://python-forum.io/Thread-Basic-Files
and by the way this is not 2x2 matrix
2. Read the each line and parse it, replacing Y/N values
3. Write the new line in the output file
this can be done with basic file operations or you can use csv module
also tutorial on working with files
https://python-forum.io/Thread-Basic-Files
and by the way this is not 2x2 matrix