Impractical Python Projects_ Playful Programming Activities to Make You Smarter ( PDFDrive ).pdf

(25465 KB) Pobierz
History
Topics
IMPRACTICAL PYTHON PROJECTS
Playful Programming Activities to Make You Smarter
Tutorials
by Lee Vaughan
Offers & Deals
Highlights
Settings
Support
San Francisco
Sign Out
Playlists
IMPRACTICAL PYTHON PROJECTS. Copyright © 2019 by Lee Vaughan.
History
All rights reserved. No part of this work may be reproduced or transmitted in any form
or by any means, electronic or mechanical, including photocopying, recording, or by
any information storage or retrieval system, without the prior written permission of the
copyright owner and the publisher.
ISBN­10: 1­59327­890­X
ISBN­13: 978­1­59327­890­8
Publisher: William Pollock
Production Editor: Janelle Ludowise
Cover Illustration: Josh Ellingson
Interior Design: Octopod Studios
Developmental Editor: Zach Lebowski
Copyeditor: Rachel Monaghan
Compositor: David Van Ness
Proofreader: Paula L. Fleming
Indexer: Beth Nauman­Montana
The following images are reproduced with permission: Figure 4­1 courtesy of the
Library of Congress; Figure 7­1 created by vecteezy.com; rat silhouette in Figure 7­2
created by vecteezy.com; door image in Figures 11­1, 11­3, 11­4, 11­5, and 11­6 created by
Dooder at Freepik.com; goat and moneybag images in Figures 11­1, 11­4, 11­5, and 11­6
created by Freepik.com; Figures 10­1, 10­7, 13­1, 14­21, and 15­1 from NASA; satellite
images in Figures 14­13 and 14­24 courtesy of www.aha­soft.com/; output in Figure
12­5 supplied by ifa.com
For information on distribution, translations, or bulk sales, please contact No Starch
Press, Inc. directly:
No Starch Press, Inc.
245 8th Street, San Francisco, CA 94103
phone: 1.415.863.9900; info@nostarch.com
www.nostarch.com
Topics
Tutorials
Offers & Deals
Highlights
Settings
Support
Technical Reviewers: Jeremy Kun, Michael Contraveos, and Michele Pratusevich
Sign Out
Library of Congress Cataloging­in­Publication Data
Names: Vaughan, Lee, author.
Title: Impractical Python projects : playful programming activities to make
   you smarter / Lee Vaughan.
Description: First edition. | San Francisco : No Starch Press, Inc., [2019]
   | Includes bibliographical references and index.
Identifiers: LCCN 2018027576 (print) | LCCN 2018029119 (ebook) | ISBN
   9781593278915 (epub) | ISBN 1593278918 (epub) | ISBN 9781593278908 (pbk. :
   alk. paper) | ISBN 159327890X (pbk. : alk. paper)
Subjects:  LCSH: Python (Computer program language)
Classification: LCC QA76.73.P98 (ebook) | LCC QA76.73.P98 V38 2019 (print) |
   DDC 005.13/3­­dc23
LC record available at https://lccn.loc.gov/2018027576
No Starch Press and the No Starch Press logo are registered trademarks of No Starch
Press, Inc. Other product and company names mentioned herein may be the
trademarks of their respective owners. Rather than use a trademark symbol with every
occurrence of a trademarked name, we are using the names only in an editorial fashion
and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The information in this book is distributed on an “As Is” basis, without warranty. While
every precaution has been taken in the preparation of this work, neither the author nor
No Starch Press, Inc. shall have any liability to any person or entity with respect to any
loss or damage caused or alleged to be caused directly or indirectly by the information
contained in it.
y
History
INTRODUCTION
Topics
Tutorials
Offers & Deals
Highlights
Welcome to Impractical Python Projects! Here, you’ll use the Python programming
Settings
language to explore Mars, Jupiter, and the farthest reaches of the galaxy; the souls of
Support
poets; the world of high finance; the underworld of espionage and vote tampering; the
trickery of game shows; and more. You’ll use techniques such as Markov chain analysis
Sign Out
to write haiku, Monte Carlo simulation to model financial markets, image stacking to
improve your astrophotography, and genetic algorithms to breed an army of gigantic
rats, all while gaining experience with modules like 
pgm
, Pylint, pydocstyle, 
titr
yae
kne
,
pto-ox mtlti
, and 
plo
. And most of all, you’ll have fun.
yhndc
apolb
ilw
WHO THIS BOOK IS FOR
You can think of this as your second Python book. It’s designed to follow and
complement either a complete beginner’s book or an introductory class. You’ll be able
to continue self­training using a project­based approach, without wasting your money
or shelf space on a thorough rehashing of concepts you’ve already learned. But don’t
worry, I won’t leave you hanging; all the code is annotated and explained.
These projects are for anyone who wants to use programming to conduct experiments,
test theories, simulate nature, or just have fun. This includes people who use
programming as part of their jobs (like scientists and engineers) but who aren’t
programmers per se, as well as those I call the “determined non­specialists”—
dilettantes and dabblers who enjoy programming problems as a fun pastime. If you’ve
wanted to toy with the concepts presented here but found starting potentially
Zgłoś jeśli naruszono regulamin