Feb-21-2019, 08:27 PM
What are the contents of the text file before you read it? If that is the output of the print statement, there are no newline characters in the file, rendering the splitlines call useless (note that you can use f.readlines() instead).
I would note that 21, 30, and 33 don't really do anything, so you should be able to delete them. 21 and 30 are undone by 22 and 31, but note that you have different file specifications on those pairs of lines.
I would note that 21, 30, and 33 don't really do anything, so you should be able to delete them. 21 and 30 are undone by 22 and 31, but note that you have different file specifications on those pairs of lines.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures