Winter Driving Best Books of the Month Valentine's Day Shop Learn more nav_sap_SWP_6M_fly_beacon Chi-Raq Bose SoundLink AE All-New Amazon Fire TV Subscribe & Save Valentine's Day Cards Create an Amazon Wedding Registry Amazon Gift Card Offer chiraq chiraq chiraq  Amazon Echo All-New Fire Kindle Paperwhite Prime Exclusive Savings in Video Games Shop Now Sale

Format: PaperbackChange
Price:$20.48+ Free shipping with Amazon Prime
Your rating(Clear)Rate this item


There was a problem filtering reviews right now. Please try again later.

on March 8, 2014
This book covers an incredible range of topics - from scripting to graphics to using the GPIO pins. It is clear and easy to read with only a few minor typos. All of the code in the book is also available on the web site which saves a lot of typing.

If I had one complaint it would be that the book is truly an introduction in the first few chapters but seems to get a little thinner on the details later on in the book. For example, it spends a good bit of time explaining basic programming concepts such as syntax and logical constructs. And for most of the chapters it describes what is happening in the code line-for-line. But in the chapter on GPIO programming it says not to worry about how the function interacting with the hardware operates. This would have been a very good place to go into a lot of detail.
0Comment21 of 21 people found this helpful. Was this review helpful to you?YesNoReport abuse
VINE VOICEon June 18, 2014
Format: PaperbackVine Customer Review of Free Product( What's this? )
Learning Python with Raspberry Pi is a good Python beginner book and gets you started step by step with general computer knowledge followed by step by step programming. Software projects are multi platform which is good but very little is offered on utilizing the special functions or the Pi platform. There is a good amount of information about the Pi hardware and how it works but I expected to have see some good hardware interface programming examples to get started with a Python Pi hardware project instead of so much time on graphics which is prettly limited on the Pi platform.

Since it isn't listed in the product description I will post the Table of Contents which is available in the "Click to Look Inside" preview so it is easier to reference.

Introduction 1
What Is Programming? 1
Why the Raspberry Pi? 2
How Does this Book Work? 2

CHAPTER 1 Getting Up and Running 5
Setting Up Your Raspberry Pi 5
Solving Problems 6
A Quick Tour of Raspbian 7
Using LXDE (Lightweight X11 Desktop Environment) 7
Using the Terminal 8
Changing Configurations with Raspi-Config 10
Installing Software 10
Python 3 11
The Python Interpreter 11
Running Python Programs 11
Summary 12

CHAPTER 2 A Really Quick Introduction to Python 13
Drawing Picture with Turtles 13
Using Loops 16
Conditionals: if, elif, and else 18
Using Functions and Methods to Structure Code 20
A Python Game of Cat and Mouse 21
Understanding Variables 24
Defining Functions 24
Looping Through the Game 25
Summary 26

CHAPTER 3 Python Basics 27
Variables, Values, and Types 27
Values Have Types 28
Storing Numbers 29
Keeping Text in Strings 30
Boolean: True or False 31
Converting Between Data Types 32
Test Your Knowledge 32
Exercise 1 33
Storing Values in Structures 33
Non-Sequential Values in Dictionaries and Sets 37
Test Your Knowledge 38
Controlling the Way the Program Flows 38
Moving Through Data with for Loops 39
Going Deeper with Nested Loops 40
Branching Execution with if Statements 41
Catching Exceptions 42
Exercise 2 43
Making Code Reusable with Functions 43
Optional Parameters 46
Bringing Everything Together 46
Exercise 3 48
Building Objects with Classes 49
Getting Extra Features from Modules 54
Summary 55
Solutions to Exercises 56
Exercise 1 56
Exercise 2 56
Exercise 3 56

CHAPTER 4 Graphical Programming 57
Graphical User Interface (GUI) Programming 58
Adding Controls 60
Test Your Knowledge 62
Exercise 1 62
Creating a Web Browser 62
Adding Window Menus 71
Test Your Knowledge 73
Exercise 2 73
Summary 74
Solutions to Exercises 74
Exercise 1 74
Exercise 2 76

CHAPTER 5 Creating Games 77
Building a Game 79
Initialising PyGame 82
Creating a World 86
Detecting Collisions 88
Moving Left and Right 90
Reaching the Goal 92
Making a Challenge 93
Making It Your Own 97
Adding Sound 98
Adding Scenery 99
Adding the Finishing Touches 101
Taking the Game to the Next Level 102
Realistic Game Physics 103
Summary 108

CHAPTER 6 Creating Graphics with OpenGL 109
Getting Modules 110
Creating a Spinning Cube 110
Vectors and Matrices 112
Bringing It All Together 116
Let There Be Light 120
Calculating the Distance of the Point from the Light Source 120
Calculating Reflecting Angles 121
Making the Screen Dance 126
Building the 3D Model 128
Calculating the Sound Level 129
Taking Things Further 135
Adding Some Texture 136
Summary 136

CHAPTER 7 Networked Python 139
Understanding Hosts, Ports, and Sockets 139
Locating Computers with IP Addresses 140
Building a Chat Server 141
Tweeting to the World 144
Weather Forecasts with JSON 147
Testing Your Knowledge 149
Exercise 1 149
Getting On the Web 149
Making Your Website Dynamic 151
Using Templates 153
Sending Data Back with Forms 153
Exercise 2 155
Keeping Things Secure 155
Summary 159
Solutions to Exercises 160
Exercise 1 160
Exercise 2 161

CHAPTER 8 Minecraft 163
Exploring Minecraft 164
Controlling Your Minecraft World 164
Creating Minecraft Worlds in Python 165
Building Worlds 166
Drawing Pictures 166
Taking Things Further 169
Making the Game Snake 169
Moving the Snake 173
Growing the Snake 173
Adding the Apples 174
Taking Things Further 175
Summary 175

CHAPTER 9 Multimedia 177
Using PyAudio to Get Sound into Your Computer 177
Recording the Sound 179
Speaking to Your Pi 180
Asking the Program Questions 181
Putting It All Together 182
Taking Things Further 184
Making Movies 184
Using USB Webcams 185
Adding Computer Vision Features with OpenCV 187
Taking Things Further 190
Using the Raspberry Pi Camera Module 190
Creating Live Streams 193
Taking Things Further 196
Summary 196

CHAPTER 10 Scripting 197
Getting Started with the Linux Command Line 197
Using the Subprocess Module 200
Command-Line Flags 202
Regular Expressions 203
Testing Your Knowledge 206
Scripting with Networking 207
Bringing It All Together 209
Working with Files in Python 216
Summary 217

CHAPTER 11 Interfacing with Hardware 219
Setting Up Your Hardware Options 219
Female to Male Jumper Wires 219
Pi Cobbler 220
Solderless Breadboard 221
Stripboards and Prototyping Boards 221
PCB Manufacturing 222
Getting the Best Tools 222
Wire Cutters/Strippers 222
Multimeters 222
Soldering Irons 222
Hardware Needed for this Chapter 223
The First Circuit 224
Protecting Your Pi 228
Power Limits 229
Getting Input 229
Expanding the GPIO Options with I2C, SPI, and Serial 231
The SPI Communications Protocol 231
The I2C Communications Protocol 235
The Serial Communications Protocol 236
Taking the Example Further 236
Arduino 236
PiFace 237
Gertboard 237
Wireless Inventor’s Kit 238
Trying Some Popular Projects 238
Robots 238
Home Automation 239
Burglar Alarms 239
Digital Art 239
Summary 239

CHAPTER 12 Testing and Debugging 241
Investigating Bugs by Printing Out the Values 241
Finding Bugs by Testing 245
Checking Bits of Code with Unit Tests 245
Getting More Assertive 250
Using Test Suites for Regression Testing 252
Testing the Whole Package 253
Making Sure Your Software’s Usable 254
How Much Should You Test? 254
Summary 255
Index 257
0Comment16 of 17 people found this helpful. Was this review helpful to you?YesNoReport abuse
on April 27, 2014
Bought this book as an amazon ebook. Currently working through the programming exercises. It is relatively easy to follow and the examples are definitely interesting and fun. Examples use mostly API python modules for coding. It is always amazing how little code it can take to create a fully functional application using api components. The web browser app surprised me and works quite well. The writer certainly knows his stuff. The example code can be downloaded to save time but I like to manually enter the code, since you learn by doing. It also helps you understand error messages and how to fix typos, indent or syntax errors. I tend to miss colon's and have learned to watch more carefully when coding. The only complaint would be that I found the book a little pricey considering it was an ebook. I feel the publishers (not necessarily Amazon) are gouging the public by over pricing. I would have felt better buying the ebook directly from the author (eg self published through Amazon) knowing that he would get most of the profits instead of middle men overpricing, taking a large cut and leaving the author with a small fraction.
0Comment9 of 10 people found this helpful. Was this review helpful to you?YesNoReport abuse
on July 25, 2014
Amazing intro to python book while simultaneously teaching you how to do neat things with the Pi. If you have an interest in low level programming and Python and the Pi I think this is your best bet. It will give you a really good base understanding of all 3 and teach you how to implement them well.
0Comment5 of 5 people found this helpful. Was this review helpful to you?YesNoReport abuse
on March 1, 2015
This might be the best Python intro for people who are new to programming and like to learn by doing. You really don't need a Raspberry Pi. Just a few pages into chapter 2 users are writing a program that draws on the screen and getting a sense of the control and flow of programming. It was just the right pace to teach my high-school age children.

If you're new to programming and you want to get excited about it, this book is a tour of great examples. Chapter 4: Build a web browser with a GUI. Chapter 5: Build a platformer game with Pygame. Chapter 6: Use OpenGL to build 3D graphics that sync to music. Chapter 7: Write an app that gets weather data via JSON and communicates via Twitter. You are certain to find something here that is a foundation for your first project idea and finish this book feeling empowered.

Only Chapter 11 really deals with the Raspberry Pi specifically. It covers the basics of building a circuit and a simple game, but I wish they had added a second example that was more interesting.

Chapter 12 is about testing and debugging. It would be nice if unit testing were introduced earlier, to establish good habits, but it would also make it chapter/project longer and perhaps take away from the fun, "you can do this" pace of the book.

I have just one *real* complaint: There are a few errors in the book (1st edition), and when a beginner is trying to learn to program by following an example, these can really derail them. Wiley has a link to download the code examples (which work), but they don't have errata! That's pretty poor performance on the part of the publisher.

Still, if you're getting started or want to help others get started with Python, I think this is my favorite book so far. You won't finish it a Python expert, but you will know how to get things done and very likely with a foundation to start your own projects.
0Comment2 of 2 people found this helpful. Was this review helpful to you?YesNoReport abuse
VINE VOICEon May 19, 2014
Format: PaperbackVine Customer Review of Free Product( What's this? )
This text provides a decent introduction to programming in the Python Language suitable for "high schoolers" and hobbyists.
Many of the applications involve libraries such as Pygame and CV which are available in a variety of programming environments including standard PC's. I would have preferred to see more direct instruction and diagramming of the Pi specific functionality in device I/O and Network Services specific to a Maker performing experiments in this environment.
0Comment2 of 2 people found this helpful. Was this review helpful to you?YesNoReport abuse
on April 19, 2015
A lot of "Type this. See. It does that." Not a lot of learning why. I find that I've forgotten one chapter by the end of the next. Doesn't seem to offer much that a generic Python course doesn't. Hoping the RasPi specifics will come before the end of the book.
0Comment1 of 1 people found this helpful. Was this review helpful to you?YesNoReport abuse
on December 27, 2014
Do you want to learn computer programming and you also have Raspberry Pi? If you do, this book is for you. Authors Alex Bradbury and Ben Everard have done an outstanding job of writing a book that shows you how to utilize Raspberry Pi to its fullest potential.

Authors Bradbury and Everard, begin by showing you how to unlock the full power of the tiny computer, from 3D graphics to games programming to controlling electronics to tweeting. Next, the authors give you a taste of how to program. In addition, they go into detail about exactly how to create your own programs in Python. The authors also show you how to build graphical software by using a GUI toolkit. Then, they continue by introducing you to PyGame: Which is a module to help you create games in Python. The authors then show you how to use OpenGL: Which requires some maths, a new programming language, and a host of new concepts. Next, they show you how to send data back and forwards between two computers, by using the host and port number. In addition, the authors help you understand Minecraft: Which is a survival game set in a 3D world of blocks. They also look at two additional sensors that you can give your Pi to allow it to interact with the world in a far more natural way: microphones and cameras. Then, the authors show you how to use Python to make your life easier, by automating housekeeping jobs so that your computer keeps running with minimal intervention. Next, they show you how to control things outside of the Pi; and, the equipment that you will need to try out the various types of examples shown in this book. Finally, the authors show you the judicious use of print ( ) statements, that can help you find out what the problems are.

This excellent book has given you a good grasp of how to use Python 3. Also, this great book will make you familiar with many of the most useful module add-ons.
0CommentWas this review helpful to you?YesNoReport abuse
on July 18, 2014
I originally purchased this book for my kids. It has chapters on Python, Pygame, 3D, games, Minecraft(Pi version) API and more. I find myself using it as a reference. This book is a must have for Raspberry Pi owner.
0Comment3 of 4 people found this helpful. Was this review helpful to you?YesNoReport abuse
on June 10, 2015
It would have been just what I needed if the site for downloading programs in the book was still supported by Wiley Books. As it is you have to type all the programs printed in the book to your Raspberry.
0Comment1 of 1 people found this helpful. Was this review helpful to you?YesNoReport abuse