Register to get access to free programming courses with interactive exercises

Read more about Python Python: Setting up the environment

To delve deeper into setting up the Python environment, we need to remember the theoretical basics of the language. It will help you understand more about the environment and how to work with it.

Programming languages

What is a programming language? There are two related yet independent themes when it comes to this concept.

On the one hand, a programming language refers to the syntactic and semantic rules by which source code is written and works. Unlike natural languages, these rules are strict. Any tiny error can cause the code either not to run or not to work correctly.

For example, you can't write my name = 5 with a space in the variable name in Python. These rules exist in books and the heads of programmers and language developers. The entire set of rules exists as a specification — a separate document.

On the other hand, a programming language is a program that runs and compiles our code. It's usually called the execution environment.

The runtime environment is the kind of specification incarnate. It's sometimes called implementation. A particular language may have several implementations, including a reference implementation, which all others look up to. Different people and companies can develop different implementations.

Python has no dedicated specification, but there is a reference implementation. It's called CPython, a Python interpreter implemented in C. If you people talk about Python, they probably mean the CPython reference implementation. Other options usually have their names. For example, the language implementation for running programs on the .NET platform is called IronPython.

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.bookmate">Bookmate</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.healthsamurai">Healthsamurai</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.dualboot">Dualboot</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.abbyy">Abbyy</span>
Suggested learning programs
profession
new
Developing web applications with Django
10 months
from scratch
under development
Start at any time

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.