0% found this document useful (0 votes)
37 views2 pages

Digital Talent Network

A program written in a high-level programming language is called source code, which is stored in a source file. The Python programming language gets its name from the British comedy troupe Monty Python. Python is an interpreted, object-oriented, high-level programming language that is widely used for general purpose programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Digital Talent Network

A program written in a high-level programming language is called source code, which is stored in a source file. The Python programming language gets its name from the British comedy troupe Monty Python. Python is an interpreted, object-oriented, high-level programming language that is widely used for general purpose programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A program written in a high-level programming language is called a source code (in contrast to the

machine code executed by computers). Similarly, the file containing the source code is called the source
file.

Compilation vs. interpretation


Computer programming is the act of composing the selected programming language's elements in the
order that will cause the desired effect. The effect could be different in every specific case - it's up to the
programmer's imagination, knowledge and experience.

Of course, such a composition has to be correct in many senses:

 alphabetically - a program needs to be written in a recognizable script, such as Roman, Cyrillic,


etc.
 lexically - each programming language has its dictionary and you need to master it; thankfully,
it's much simpler and smaller than the dictionary of any natural language;
 syntactically - each language has its rules and they must be obeyed;
 semantically - the program has to make sense.

What does the interpreter actually do?


Let's assume once more that you have written a program. Now, it exists as a computer file: a computer
program is actually a piece of text, so the source code is usually placed in text files. Note: it has to be
pure text, without any decorations like different fonts, colors, embedded images or other media. Now
you have to invoke the interpreter and let it read your 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.

IDLE is an acronym: Integrated Development and Learning Environment.

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.

You might also like