In the previous chapter, we discussed printing a line of text on the screen. In this chapter, we will review arithmetic operations and variables in Python. We will also discuss strings and accepting user inputs in Python. You will learn about the Raspberry Pi's GPIO and its features and write code in Python that makes an LED blink using the Raspberry Pi's GPIO. We will also discuss a practical application of controlling the Raspberry Pi's GPIO.
In this chapter, we will cover the following topics:
- Arithmetic operations in Python
- Bitwise operators in Python
- Logical operators in Python
- Data types and variables in Python
- Loops in Python
- Raspberry Pi Zero's GPIO interface.