Python is a powerful programming language that’s easy to learn and fun to play with. But once you’ve gotten a handle on the basics, what do you do next?
Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. You’ll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like: –Generate Spirograph-like patterns using parametric equations and the turtle module –Create music on your computer by simulating frequency overtones –Translate graphical images into ASCII art –Write an autostereogram program that produces 3D images hidden beneath random patterns –Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques –Construct 3D visualizations using data from CT and MRI scans –Build a laser show that responds to music by hooking up your computer to an Arduino
Programming shouldn’t be a chore. Have some solid, geeky fun with Python Playground .
The projects in this book are compatible with both Python 2 and 3.
This is one of those rare programming books that is fun to read, and yet suited for the intermediate / advanced python programmer. I reckon even the novices should take a stab at this book, if anything to realize that the true power of Python is not just the simplicity and elegance of the language, but the vast array of open source packages that are available at your disposal to do just about anything, and this book does a great job at demonstrating that. From ASCII art & musical overtones to hardware hacking with Ardunio & Raspberry Pi, this book is enjoyable from start to finish.
When I start to not get a book, one thing I ask myself is: Am I the target audience for this book? 'Cause, you know, I may need to reflect if the book is actually good for beginners instead of people who already know the topic.
And here is the problem with this book: it does a bad job finding its target.
The reason is simple: the code is full of violations of PEP8, something Python beginners should not be exposed to and something expert developers get pissed.
Now, there is nothing wrong with your weekend projects to not follow standards -- that's perfectly acceptable. But when you have your code published in a book, you must, at least, follow the general guidelines that the community follows.
But let's throw this out of the window: is the book "good"? The answer is mostly "well...". It's not bad, but it isn't really interesting. It is merely ok.