Book description
Harness the power of Python as you turn code into tangible creations with Python Playground, a collection of 15 inventive projects that will expand your programming horizons, spark your curiosity, and elevate your coding skills.
Go beyond the basics as you write programs to generate art and music, simulate real-world phenomena, and interact with hardware, all through the use of Python and common libraries such as numpy, matplotlib, and Pillow.
As you work through the book’s projects, you will:
•Craft intricate Spirograph-like designs with parametric equations and the turtle module
•Generate music by synthesizing plucked string sounds
•Transform everyday images into ASCII art, photomosaics, and eye-popping autostereograms
•Design engaging cellular automata and flocking simulations
•Explore the realm of 3D graphics, from basic shape rendering to visualizing MRI scan data
•Build a Raspberry Pi–powered laser show that dances along with music
New to this edition: We’ve expanded your playground with five new projects: you’ll draw fractals, bring Conway’s Game of Life into 3D space, and use a Raspberry Pi and Python to create a musical instrument, an IoT garden monitor, and even a machine learning–driven speech recognition system.
Whether you’re a seasoned professional or just getting started, you’ll find Python Playground to be a great way to learn, experiment with, and master this versatile programming language.
Covers Python 3.x
Table of contents
- Cover
- Title Page
- Copyright Page
- Dedication
- Brief Contents
- Contents in Detail
- Acknowledgments
- Introduction
- Part I: Warming Up
- Part II: Simulating Life
- Part III: Fun with Images
-
Part IV: Enter 3D
- 9 Understanding OpenGL
- 10 Conway’s Game of Life on a Torus
- 11 Volume Rendering
-
Part V: Hardware Hacking
- 12 Karplus-Strong on a Raspberry Pi Pico
- 13 Laser Audio Display with a Raspberry Pi
- 14 IoT Garden
- 15 Audio ML on Pi
- A Python Installation
- B Raspberry Pi Setup
- Index
Product information
- Title: Python Playground, 2nd Edition
- Author(s):
- Release date: November 2023
- Publisher(s): No Starch Press
- ISBN: 9781718503045
You might also like
book
Python One-Liners
Python One-Liners will teach you how to read and write “one-liners”: concise statements of useful functionality …
book
Python Real-World Projects
Develop Python applications using an enterprise-based approach with unit and acceptance tests by following agile methods …
book
Object-Oriented Python
Object-Oriented Python (OOP) is a paradigm that combines data and code into cohesive units, allowing you …
book
Real-World Python
With its emphasis on project-based practice, Real-World Python will take you from playing with syntax to …