Introduction
Python is a popular open-source scripting language focusing on simplicity and clarity. It also supports object-oriented programming. It is the purpose of this introduction to provide you a starting point for learning Python and a reference.
Python is available in two releases, version 2 and version 3, both of which are under active development but not completely compatible with each other. Python 2 code can use extensions which make it compatible with Python 3 code. This will be explained in a later chapter. Both Python versions are available in the CIP pool. Calling
Python is available in two releases, version 2 and version 3, both of which are under active development but not completely compatible with each other. Python 2 code can use extensions which make it compatible with Python 3 code. This will be explained in a later chapter. Both Python versions are available in the CIP pool. Calling
python
on the command line in the CIP pool will start Python 2. To start Python 3 call python3
.During these exercises we will use Python 2, but it is important to be aware of the different versions,
These boxes contain advanced knowledge, which is not necessary to know for these exercises but which we find very useful. Feel free to read these and follow the documentation links if you are interested!
Python's popularity is also due to the possiblity to generate Python language interfaces for code written in other languages such as C++. Frameworks like OpenCV make use of this to provide their functionality easily accessible through Python. Furthermore, the Python runtime can be embedded into other applications which then become "scriptable" through the Python language.