0
Why do we need to add newline at the end of a file in Pycharm IDE?
1 Answer
+ 6
It is a convention originating in POSIX standard. For some programs it may be significant. I guess the built-in style checker in Pycharm would warn if this condition is not satisfied.
https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline