Digital Talent Network
Digital Talent Network
machine code executed by computers). Similarly, the file containing the source code is called the source
file.
For the best learning experience, we recommend having the Python 3 standard installation on your
computer. A copy of Python 3 can be downloaded from https://www.python.org/downloads. The
installation contains a software application called IDLE (Integrated Development and Learning
Environment), which will enable you to execute simple Python commands and see the effects of
executing your programs.
A complete set of known commands is called an instruction list, sometimes abbreviated to IL. Different
types of computers may vary depending on the size of their ILs, and the instructions could be completely
different in different models.
What is Python?
Python is a widely-used, interpreted, object-oriented, and high-level programming language with
dynamic semantics, used for general-purpose programming.
And while you may know the python as a large snake, the name of the Python programming language
comes from an old BBC television comedy sketch series called Monty Python's Flying Circus.
At the height of its success, the Monty Python team were performing their sketches to live audiences
across the world, including at the Hollywood Bowl.
Since Monty Python is considered one of the two fundamental nutrients to a programmer (the other
being pizza), Python's creator named the language in honor of the TV show.
an editor which will support you in writing the code (it should have some special features, not
available in simple tools); this dedicated editor will give you more than the standard OS
equipment;
a console in which you can launch your newly written code and stop it forcibly when it gets out
of control;
a tool named a debugger, able to launch your code step by step and allowing you to inspect it at
each moment of execution.
Besides its many useful components, the Python 3 standard installation contains a very simple but
extremely useful application named IDLE.
Navigate through your OS menus, find IDLE somewhere under Python 3.x and launch it. This is what you
should see:
This is the editor window. Its only purpose is to be a workplace in which your source code is treated.
Do not confuse the editor window with the shell window. They perform different functions.
Note: don't set any extension for the file name you are going to use. Python needs its files to have the .py
extension, so you should rely on the dialog window's defaults. Using the standard .py extension enables
the OS to properly open these files.