An Integrated Development Environment, or IDE, is a program that we can use to write, test, debug, and run Python code. There are many viable options to choose here. There isn’t just one program that you must use to create a Python program, similar to how you aren’t limited to using one specific software to write a paper for a writing course.
Consider the scenario of a student taking an English course at a university. The teacher may assign students to write a paper on a particular subject, word count, and formatting. At this point, a student can choose between a number of options for software to write the paper with: Microsoft Word, Apple Pages, Google Drive, and so on. Regardless which software is chosen, the student can still write a paper that meets the requirements the teacher has set forth.
Deciding which Python IDE to use is a similar type of choice. If you set out to develop a Python program, you should make a choice about what program you want to use to write the code. There are may options that can be used for this, but a few that I can recommend include:
Before you go to download and install one of these IDEs, you should download python! Though there are some differences, these IDEs will often have a few general features in common. Below I show a screenshot from the Mu editor showing where a few of these common features can be found.
.py
.
Ultimately, a Python file isn’t anything fancy, its just a file with a bunch of text in it, but the .py
indicates to people and to computers how the file should be treated, as Python code.>>>
Is the Python command line prompt. In this case, it indicates that the program finished running.If you choose to work with an IDE other than Mu, that is totally fine. Just make sure to spend time getting used to that particular IDE’s interface for creating, saving, loading, running, and testing your Python code. You also are not limited to the three that I linked to in this lesson. If you stumble across an alternate program that you find more intuitive, use it! As long as it can be used to write and run Python programs, you should still be able to use it to follow-along with these lessons.