Python Projects for Kids

所需积分/C币:10 2016-04-24 11:38:39 3.46MB PDF

Python Projects for Kids Book Description Kids are always the most fast-paced and enthusiastic learners, and are naturally willing to build stuff that looks like magic at the end (when it works!). Programming can be one such magic. Being able to write a program that works helps them feel they've r
Python Projects for Kids Copyright C 2016 Packt Publishing 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 cither 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 First published: April 2016 Production reference: 1070416 Published by Packt Publishing Ltd Livery place 35 Livery street Birmingham b3 2PB, UK ISBN978-1-78217-506-3 www.packtpub.com Credits Author Project Coordinator Jessica Ingrassellino Nikhil nair Reviewer Proofreader David whale Safis editi Commissioning Editor Veena pagare Rekha nail Acquisition Editor Production coordinator Aaron lazar Melwyn dsa Content Development Editor Cover Work Sachin Karnani Melwyn Dsa Technical editor Rupali R. shrawane Copy Editor Sonia cheema 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 hasfoundedhttp://www.teachcode.org/,anonprofitthatteachescomputer 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 e never loses faith in me, and for that. I am eternally grate i ock believing in me and helping me through some major writer's ble He 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 S Sons, the coauthor of Adventures in minecraft, and he is a regular reviewer and editor of technical books for a number of book publis 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 further-this 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 e Book versions of every book published with PDF andepubfilesavailableYoucanupgradetotheebookversionatwww.packtpub com and as a print book customer, you are entitled to a discount on the e Book copy Get in touch with us at customercareapacktpub com for more details Atwww.packtPub.comyoucanalsoreadacollectionoffreetechnicalarticlessign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and ebooks PACKTLIB https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your If 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 Table of contents Preface Chapter 1: Welcome! Let's Get Started Python projects for you What can you do with Python? Why you should learn Python The prerequisites of Python Setting up your computer For Mac and ubuntu linux users Python 2.7 For windows users Write and run your first program in the command line Make yourself a work folder 2233357901 A quick task for you Summary Chapter 2: Variables, Functions, and Users 13 Variables Naming variables-conventions to follow 34 What can variables remember? 15 Strings 15 Integers 16 Floating point numbers( floats) 17 Combining strings, integers, and floats 18 Functions 19 Built-in functions 19 Parts of a function 20 Users interacting with your program 22 Using the text editor and the command line Table of contents Build your own function-nameo 24 Set up your project file 24 Begin your project 25 Writing code 25 Running your program 27 Going the extra mile 27 A quick task for you 28 Summary Chapter 3: Calculate This 31 The calculator 31 Basic functions 32 Operations on two numbers 33 Convert data into numbers-int( and float 34 Floating point to whole number conversion 34 Whole number to floating point conversion 35 ext strings fail in into and float) Creating our first calculator file New functions-subtraction, multiplication, and division 37 Subtraction Multiplication 38 Division 39 Finding a remainder-modulo 40 Running your program 41 A quick task for you 42 Summar 42 Chapter 4: Making Decisions- Python Control Flows 43 Is it equal, not equal, or something else? 44 Conditional statements -if elif else 45 Getting better input 46 if 46 elif 47 else 49 Loops 50 While 50 Global variables and the quito function Using the quit( function 51 Using the while loop to control the program for 53 Bonus-count to ten( function 55 A quick task for you 56 Summary lI Table of Contents Chapter 5: Loops and Logic 59 Higher or Lower 59 Game file set up 60 Importing libraries Setting and initializing global variables 62 What is a boolean 62 Building the easy version Compare numbers 64 play_ again( Start, stop play again start gameo 67 play_ again( Play testing Building the hard version Comparing numbers-the hard version Play test the whole program! 74 A quick task for you Summar Chapter 6: Working with Data-Lists and Dictionaries 79 Lists 79 Parts of a list 80 Working with a list 81 Changing the list -adding and removing information Adding items to the list 83 Removing items from the list 84 Lists and loops 84 Dictionaries 86 Key/value pairs in dictionaries 86 Changing the dictionary -adding and removing information 88 Adding items to the dictionary Changing the value of an existing item 89 Removing items from the dictionary List or dictionary 91 A quick task for you 92 Summary 93 Chapter 7: What's in Your backpack? 95 Setting up our coding environment 95 Planning to program your game 96 skills needed to make a program 97 Score, play again, or quit? 98 [ⅲi

...展开详情

评论 下载该资源后可以进行评论 4

18妹 好东西,一直都忘了评论
2018-03-21
回复
pangzhurengugu 不错的书籍,可以给小孩学学
2017-11-13
回复
雷克萨斯王子 好像打不开,我再下载一次试试
2017-11-08
回复
elephantsun 非常好的python书,值了
2016-11-27
回复
img
DWcsdnNET

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源