

These programs should never be used to edit program code because the interpreter/compiler will not be able to add the extra formatting that they add to the source code. Why You Should Never Edit Python Files with Word Processors like Wordpad, Microsoft Word, OpenOffice or LibreOffice WriterĪ word processor or rich text editor is a program that is able to add formatting to your text like changing font weight, size or style. In this article I’ll show you how to edit Python scripts in notepad, I’ll explain why it is not a good idea to do so and I’ll show some better alternatives. Avoid using a rich editor like Wordpad, Microsoft Word, LibreOffice Writer or OpenOffice. You can install a proper code editor or an IDE in a few minutes and you will be much more productive. it will autosave the files for you, even the once whom you did not save as drafts. You can edit Python files in Notepad, but you should not use it as there are much better tools for code editing. Anaconda Prompt: a Command-line shell (CMD, Terminal, Bash Shell) for launching the Python Interactive Interpreter. Notepad++ is an open source text editor which is able to do a lot more than just editing texts, Notepad++ can, Can do Syntax highlighting for various programming languages and file types, Python too :) It can be used to edit multiple text files at a time.

If you are just starting to learn programming or you have to quickly edit a Python script on a Windows machine, where you cannot or do not want to install any extra software, you might be wondering which tool is the best for the job? Is it possible to edit Python code with Notepad or Word? Can You Write Python Code in Notepad, Wordpad or Word? Type in the python.exe file path: example C:\Users\C2c\AppData\Local\Programs\Python\Python38-32\python.exe.
