Sep-11-2020, 06:28 AM
Please use the python tags for your code. Python2 is very old and no longer maintained. You should be using python3 for any new projects.
What part isn't the proper form? Can you give an example of the input?
I see a definition for
Why are you opening new_file in append mode and then immediately truncating it? Why not just open it in write mode?
What part isn't the proper form? Can you give an example of the input?
I see a definition for
open_file()
, but I don't see anywhere that it's called.Why are you opening new_file in append mode and then immediately truncating it? Why not just open it in write mode?