Learning Python

1. Introduction

Python is a language specification with multiple implementations like CPython, Jython, and MicroPython, but almost everyone refers to the CPython implementation as Python that can be found on almost every Linux server. The MicroPython implementation is to run Python on microcontrollers. Jython is the last big implementation of Python 2 that runs on the Java Virtual Machine and development has mostly stalled, but development for Python 3.8 support has recently started.

The Python Institute also has a certification traject with three levels called PCEP, PCAP, and PCPP. As the PCAP exam also covers the PCEP objectives most people directly take this exam. The PCPP covers the Python ecosystem part and more advantage architecture patterns.

2. Setting up the environment

2.1. Using devcontainers

Learning Python can be done on any system with a text-editor and the Python interpreter. But it is advised to an editor like Visual Studio Code to help you develop your code. Also, VSCode can help you by spinning up a Python development container in Docker to make sure everything installed and configured correctly everytime.

When you have everything working correctly then python-template repository should start a Python based development container. In the terminal window within VSCode we can start Python manually as below

vscode@03fdf48d4d7f python-template (master) $ python
Python 3.9.1 (default, Jan 12 2021, 16:56:42) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

2.2. Using WSL2