(Python) Let's get acquainted!


“The ability to program has become the fourth component of literacy. Everyone needs to know how our digital world works, not just engineers, ”
- said Mark Serman, executive director of the Mozilla Foundation.

Programming. Why study if there are many ready-made programs for computers? Yes, there are really many ready-made programs. But as practice shows, there are always tasks that are not solved by standard means. In this case, you have to create your own (or modify the existing) program.

And yet you can say that programming is not for you, that you are inclined to the humanities. So why all the same is it needed?
Firstly, we live in the age of information technology. Computer technology surrounds us everywhere. Knowing how it works is just useful.
Secondly, learning programming helps people think abstractly and divide the task into small parts.

Our courses will allow you to step-by-step learn programming from basic skills to solving complex problems.

This course is devoted to the study of the most popular programming language - the C++ language. Many modern languages ??are C-like. Therefore, having studied this programming language, you can easily learn any other.

Working with the course you will gradually develop your skills. Starting with the basics of programming, you will soon be able to bring your skills to perfection by solving complex tasks. To learn the basics of programming, you may not have any specialized software. Enough to have the Internet and your desire for learning.

The training interface consists of several parts.
  1. On the left is the code editor in which you have to work.
  2. On the right is the window for displaying the result of the program.
  3. And at the bottom there are tasks and control buttons.
If you are ready to learn how to program easily and freely, then start completing tasks!

Programs

Program -  it is a set of instructions written in a language used by a computer. The brain of the computer - the processor, in turn, understands only one language - the language of machine codes (a sequence of zeros and ones). A person, however, is quite problematic to write a program in machine code language, not to mention finding errors and correcting them (debugging).
It was to facilitate the process of creating programs that high-level programming languages ​​were developed in which teams are close to the words of natural languages, most often English. But each word-command has a strictly defined meaning, and there is no exception.

Translator, compiler, interpreter

In order for the computer to understand, it can execute programs written in high-level languages, a special program is used - a translator
A translator can translate a program into machine codes of a specific processor - such translators are called compilers
The translator can itself execute the program, or it can translate it into a bytecode - each command has its own code, which takes one byte in memory (a number from 0 to 255). Such translators are already called interpreters.
Bytecode is executed by a virtual machine (for example, programs written in Java)

The python translator is an interpreter. Therefore, to run the program, you must install the Python interpreter on the computer.
The latest distribution can be downloaded from the page https://www.python.org/downloads/ 

For convenience, an integrated development environment (IDE) can be installed on the computer, which allows you to type, debug, and run programs.
There are many different development environments for the Python language, both commercial and free. 
Wing IDE 101 - A Simple Cross-Platform Free Learning Environment
Download Page: http://wingware.com/downloads/wingide-101 (choose your OS) or use the direct link  Wing IDE 101 (7.0.4) for Windows.
After installation Wing IDE be sure to install updates to the system ("Help" – "Check for updates").
After starting the Wing IDE, you can see a window divided into several parts

In the window marked with the number 1, you must write the program and be sure to save it (the file with the program has the extension .py
To start the program, use the button with a green triangle (Run)
You will see the result of work in the window indicated by the number 2

The simplest Python program is an empty program that does not contain any commands.
For example, a program

# This is just a comment.
It contains only a comment - an explanatory text that is not executed by the translator, but serves only to be able to quickly understand the program in the future