This post is about get used to the python environment. When you download python from the official webpage, which you can go by clicking in here, various types of files are downloaded. The main three we are interested in are:

  • Python IDLE (Integrated DeveLopment Environment): which is kind of a text editor where you can create programs from scratch. It’s simple but very useful for beginners.
  • Python shell: It is part of the IDLE, this is a simple shell where you
  • Python command line

As i said before, IDLE is for larger, complex programms. With the other two you can run simple pieces of code to try them and see if everything is going just well.

To run the Command Line just look in your computer: “Python command line” and it should appear, or look at it in the Python installing location. A black windows should appear, which has the appearance of “cmd”. In it you can just type simple code and in will perform your orders.

Try something like a simple math operation like: “2+5”. It will just show right away the answer in the screen.

Simple math operation on command line
Simple math operation on command line

Now to create larger programs is more convinient to use the IDLE. For this purpose we look for “python IDLE” in our computer and open it. The shell is what will be shown in the screen.

Python Shell, creating new file.
Python Shell, creating new file.

In here we go to the tool bar and click New file, or we can just press Ctrl + N

I recommend you to, even before start typing code, to save your file and never EVER forget that at the end of the name you must type “.py”.

Saving a .py file
Saving a .py file

Once you do this, you can start typing your code, and dont forget that every time you want to try it, you have to save your file and then in the tool bar go to “Run Module” or simple press F5

The shell will open and the screen will show your work.

CC BY 4.0 Run IDE and command line of python by fersabal is licensed under a Creative Commons Attribution 4.0 International License.