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 langu
Learning Python with Raspberry Pi
โ Scribed by Alex Bradbury, Ben Everard
- Publisher
- Wiley
- Year
- 2014
- Tongue
- English
- Leaves
- 288
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
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 functions
- Addresses 3D graphics programming
- Walks you through programming Minecraft
- Zeroes in on Python for scripting
Learning Python with Raspberry Pi proves itself to be a fantastic introduction to coding.
โฆ Table of Contents
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 VOLUMES
<div> <p>This book is about teaching the Python programming language using the Raspberry Pi 4 computer. The book makes an introduction to Raspberry Pi 4 and then teaches Python with the topics: variables, strings, arrays, matrices, tuples, lists, dictionaries, user functions, flow of control, print
Rรฉsumรฉ : "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 lear
Rรฉsumรฉ : "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 lear
<b>The must-have companion guide to the Raspberry Pi User Guide!</b><br /><br />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