Chapter 4. Programming with Python
In this chapter, we will bring the book to a boil with the Python programming language, a standard part of a Raspberry Pi distribution and a favorite of Internet of Things users. We'll try out the following:
- Choosing between Python 2 and 3
- Installing important Python packages
- Creating our first Python program and running loops
- Playing with strings
- Plotting graphs using Python
- Sending an e-mail from a Python script
- Creating a program to log and append data to a CSV file
- Using a Python script to upload data online to a Google spreadsheet interface
- Adding help and parameters to your Python Program
Introduction
There are dozens of different programming languages to choose from, so many that it can become hard to decide which ...
Get Raspberry Pi Zero Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.