In this chapter we will learn the basics of the Python programming language.
Python is a popular programming language, created by Guido van Rossum and released in 1991. Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
The most recent major version of Python is Python 3, which we shall be using in this tutorial. However, Python 2, although not being updated with anything other than security updates, is still quite popular. In this tutorial Python will be written in web-based user interface. It is possible to write Python in an Integrated Development Environment, such as Thonny, Pycharm, Netbeans or Eclipse which are particularly useful when managing larger collections of Python files.
9.1 - Basics of Python 9.2 - Syntax and variables 9.3 - If ... Else 9.4 - Data types and type casting 9.5 - Arrays 9.5.1 - List 9.5.2 - Tuple 9.5.3 - Set 9.5.4 - Dictionary 9.6 - Loops 9.6.1 - While loop 9.6.2 - For loop 9.7 - Exercise 1 9.8 - Functions 9.8.1 - Arguments 9.8.2 - Recursion 9.8.3 - Lambda 9.9 - Classes and Objects 9.10 - Exceptions and file handling 9.11 - NumPy 9.12 - GPIO Zero 9.13 - Eclipse Paho MQTT client 9.14 - Exercise 2