Learning Python with Raspberry Pi
Book information
Description
The must-have companion guide to the Raspberry Pi User Guide! Raspberry Pi chose Python as its teaching language of choice to encourage a new generation of programmers to learn how to program. This approachable book serves as an ideal resource for anyone wanting to use Raspberry Pi to learn to program and helps you get started with the Python programming language. Aimed at first-time developers with no prior programming language assumed, this beginner book gets you up and running. Covers variables, loops, and functionsAddresses 3D graphics programmingWalks you through programming MinecraftZeroes in on Python for scripting Learning Python with Raspberry Pi proves itself to be a fantastic introduction to coding. Title Page Copyright Page About the Authors Contents Introduction What Is Programming? Why the Raspberry Pi? How Does this Book Work? Chapter 1: Getting Up and Running Setting Up Your Raspberry Pi Solving Problems A Quick Tour of Raspbian Python 3 Summary Chapter 2: A Really Quick Introduction to Python Drawing Picture with Turtles A Python Game of Cat and Mouse Summary Chapter 3: Python Basics Variables, Values, and Types Keeping Text in Strings Boolean: True or False Converting Between Data Types Test Your Knowledge Storing Values in Structures Controlling the Way the Program Flows Making Code Reusable with Functions Bringing Everything Together Building Objects with Classes Getting Extra Features from Modules Summary Solutions to Exercises Chapter 4: Graphical Programming Graphical User Interface (GUI) Programming Adding Controls Creating a Web Browser Adding Window Menus Summary Solutions to Exercises Chapter 5: Creating Games Building a Game Initialising PyGame Creating a World Making It Your Own Adding Sound Adding Scenery Taking the Game to the Next Level Realistic Game Physics Summary Chapter 6: Creating Graphics with OpenGL Getting Modules Creating a Spinning Cube Making the Screen Dance Taking Things Further Adding Some Texture Summary Chapter 7: Networked Python Understanding Hosts, Ports, and Sockets Testing Your Knowledge Getting On the Web Keeping Things Secure Summary Solutions to Exercises Chapter 8: Minecraft Exploring Minecraft Making the Game Snake Taking Things Further Summary Chapter 9: Multimedia Using PyAudio to Get Sound into Your Computer Making Movies Summary Chapter 10: Scripting Getting Started with the Linux Command Line Testing Your Knowledge Scripting with Networking Bringing It All Together Working with Files in Python Summary Chapter 11: Interfacing with Hardware Setting Up Your Hardware Options Getting the Best Tools Hardware Needed for this Chapter Expanding the GPIO Options with I2C, SPI, and Serial Taking the Example Further Trying Some Popular Projects Summary Chapter 12: Testing and Debugging Investigating Bugs by Printing Out the Values Finding Bugs by Testing How Much Should You Test? Summary Index
Similar books
Learning Python with Raspberry Pi
2014 · PDF
Learning Python with Raspberry Pi
2014 · PDF
Learning Python with Raspberry Pi
2014 · PDF
Get Started with MicroPython on Raspberry Pi Pico: The Official Raspberry Pi Pico Guide, 2nd Edition
2024 · EPUB
Get started with MicroPython on Raspberry Pi Pico
2021 · PDF
Learning Computer Architecture with Raspberry Pi
2016 · MOBI
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF