All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Published by Packt Publishing Ltd.
Birmingham B3 2PB, UK.
Credits
Author
Jessica Ingrassellino
Reviewer
David Whale
Commissioning Editor
Veena Pagare
Acquisition Editor
Aaron Lazar
Content Development Editor
Sachin Karnani
Technical Editor
Rupali R. Shrawane
Copy Editor
Sonia Cheema
Project Coordinator
Nikhil Nair
Proofreader
Safis Editing
Indexer
Rekha Nair
Production Coordinator
Melwyn Dsa
Cover Work
Melwyn Dsa
About the Author
Jessica Ingrassellino is a multi-talented educator, business leader, and technologist. She received her EdD from Teachers College, Columbia University for music education with an emphasis on assessment.
Jessica is currently employed as the lead software engineer in testing at Bitly, New York City. She transitioned from a teaching career of 10 years to a technology career through a balance of freelance work and social media exposure. Jessica's current work focuses on using Python to develop automated testing tools. She is an ASTQB certified quality assurance engineer with experience in testing web, mobile, and backend applications.
In addition to working at Bitly, Jessica remains committed to education and has founded http://www.teachcode.org/, a nonprofit that teaches computer programming skills to teachers and students in urban or underserved populations through Python and 2D game programming. This new initiative will give teachers the support they need through a standards-referenced curriculum, student-engaging activities, and access to experts in the field of technology.
I would like to thank my students for allowing me to have such fun teaching them Python and learning from their experiences as new programmers. I would also like to thank Cathy Kross and Alice McGowan for being willing to have me in their classes and school and interrupting their daily lives with my code-teaching experiments. Finally, I would like to thank my husband, Nick, for believing in me and helping me through some major writer's block. He never loses faith in me, and for that, I am eternally grateful.
About the Reviewer
David Whale is a software developer who lives in Essex, UK. He started coding as a schoolboy aged 11, inspired by his school's science technician to build his own computer from a kit. These early experiments lead to some of his code being used in a saleable educational word game when he was only 13.
David has been developing software professionally ever since, mainly writing embedded software that provides intelligence inside electronic products, including automated machinery, electric cars, mobile phones, energy meters, and wireless doorbells.
These days, David runs his own software consultancy called Thinking Binaries, and he spends about half of his time helping customers design software for new electronic products, many of which use Python. The rest of the time, he volunteers for The Institution of Engineering and Technology, running training courses for teachers, designing and running workshops and clubs for school children, running workshops and talks at meet-up events all round the UK, and generally being busy with his Raspberry Pi, BBC micro:bit, and Arduino.
David was the technical editor of Adventures in Raspberry Pi, John Wiley & Sons , the coauthor of Adventures in Minecraft , and he is a regular reviewer and editor of technical books for a number of book publishers.
I was really pleased to be asked to review this exciting new coding book for children. Python is an excellent language for children to learn from a young age, and Jessica has done a great job at helping readers take their first few steps in coding with Python. I hope you will be inspired by the code and ideas in this book and come up with your own ideas to enhance and develop all of the programs furtherthis is just the start of your exciting new creative journey into coding with Python!
www.PacktPub.com
eBooks, discount offers, and more
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Preface
As you can guess from the title, this book is designed to teach the basic concepts of Python to kids. This book uses several mini projects so that kids can learn how to solve problems using Python.
Python has grown to become a very popular language for programming web apps, analyzing data, and teaching people how to write code. Python is known for being a simple language to use because it is read much like natural languages, yet it is able to do data analysis very quickly, making it a great language to create websites that handle a lot of data. Another nice thing about Python that makes it fun to use is that people have been working on game libraries, such as pygame, so that people can create graphics programs with Python. The use of simple graphics to make short games is a fun way to learn programming constructs and is especially good for visual learners.
What this book covers
, Welcome! Let's Get Started , discusses Python and setting up a Python development environment on Windows, Mac, and Linux operating systems.
, Variables, Functions, and Users , covers Python data types and functions, as well as how to program Python to get information from the user, store that information, and use it later.