My Account Log in

1 option

Python playground : geeky projects for the curious programmer / by Mahesh Venkitachalam.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Venkitachalam, Mahesh, author.
Language:
English
Subjects (All):
Python (Computer program language).
Electronic apparatus and appliances--Automatic control.
Electronic apparatus and appliances.
Arduino (Programmable controller)--Programming.
Arduino (Programmable controller).
Raspberry Pi (Computer)--Programming.
Raspberry Pi (Computer).
Physical Description:
1 online resource (353 p.)
Edition:
1st edition
Place of Publication:
San Francisco, California : No Starch Press, 2016.
Language Note:
English
System Details:
text file
Summary:
Python Playground is a collection of fun programming projects that will level up your Python skills.
Contents:
Brief Contents ; Contents in Detail ; Acknowledgments; Introduction; Who Is This Book For?; What's in This Book?; Part I: Warming Up; Part II: Simulating Life; Part III: Fun with Images; Part IV: Enter the 3D; Part V: Hardware Hacking; Why Python?; Python Versions; The Code in This Book; Part I: Warming Up; Chapter 1: Parsing iTunes Playlists; Anatomy of the iTunes Playlist File; Requirements; The Code; Finding Duplicates; Extracting Duplicates; Finding Tracks Common Across Multiple Playlists; Collecting Statistics; Plotting Your Data; Command Line Options; The Complete Code
Running the ProgramSummary; Experiments!; Chapter 2: Spirographs; Parametric Equations; Spirograph Equations; Turtle Graphics; Requirements; The Code; The Spiro Constructor; The Setup Functions; The restart() Method; The draw() Method; Creating the Animation; The SpiroAnimator Class; The genRandomParams() Method; Restarting the Program; The update() Method; Showing or Hiding the Cursor; Saving the Curves; Parsing Command Line Arguments and Initialization; The Complete Code; Running the Spirograph Animation; Summary; Experiments!; Part II: Simulating Life; Chapter 3: Conway's Game of Life
How It WorksRequirements; The Code; Representing the Grid; Initial Conditions; Boundary Conditions; Implementing the Rules; Sending Command Line Arguments to the Program; Initializing the Simulation; The Complete Code; Running the Game of Life Simulation; Summary; Experiments!; Chapter 4: Generating Musical Overtones with the Karplus-Strong Algorithm; How It Works; The Simulation; Creating WAV Files; The Minor Pentatonic Scale; Requirements; The Code; Implementing the Ring Buffer with deque; Implementing the Karplus-Strong Algorithm; Writing a WAV File; Playing WAV Files with pygame
The main() MethodThe Complete Code; Running the Plucked String Simulation; Summary; Experiments!; Chapter 5: Boids: Simulating a Flock; How It Works; Requirements; The Code; Computing the Position and Velocities of the Boids; Setting Boundary Conditions; Drawing a Boid; Applying the Rules of the Boids; Adding a Boid; Scattering the Boids; Command Line Arguments; The Boids Class; The Complete Code; Running the Boids Simulation; Summary; Experiments!; Part III: Fun with Images; Chapter 6: ASCII Art; How It Works; Requirements; The Code; Defining the Grayscale Levels and Grid
Computing the Average BrightnessGenerating the ASCII Content from the Image; Command Line Options; Writing the ASCII Art Strings to a Text File; The Complete Code; Running the ASCII Art Generator; Summary; Experiments!; Chapter 7: Photomosaics; How It Works; Splitting the Target Image; Averaging Color Values; Matching Images; Requirements; The Code; Reading in the Tile Images; Calculating the Average Color Value of the Input Images; Splitting the Target Image into a Grid; Finding the Best Match for a Tile; Creating an Image Grid; Creating the Photomosaic; Adding the Command Line Options
Controlling the Size of the Photomosaic
Notes:
Includes bibliographical references and index.
Includes index.
Description based on print version record.
ISBN:
9781457197161
1457197162
9781593277338
1593277334
OCLC:
957436278

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account