Book Image

Python Projects for Kids

By : Jessica Ingrassellino
Book Image

Python Projects for Kids

By: Jessica Ingrassellino

Overview of this book

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 really achieved something. Kids today are very tech-savvy and cannot wait to enter the fast-paced digital world. Because Python is one of the most popular languages and has a syntax that is quite simple to understand, even kids are eager to use it as a stepping stone to learning programming languages. This book will cover projects that are simple and fun, and teach kids how to write Python code that works. The book will teach the basics of Python programming, installation, and so on and then will move on to projects. A total of three projects, with each and every step explained carefully, without any assumption of previous experience.
Table of Contents (18 chapters)
Python Projects for Kids
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

A quick task for you


Q1. What is a Boolean?

  1. A statement that is either True or False

  2. A statement with many possible outcomes

  3. Used as a variable name

  4. Used as a place

Q2. Why are global variables helpful?

  1. They are limited to what they can do

  2. They can be used in any function in the file where they are set

  3. They can be changed inside the function

  4. Choice 2 and 3

Q3. for loops are similar to while loops. How is a for loop different from a while loop?

  1. for loops are used to loop a specified number of times

  2. for loops are used only for text

  3. for loops are used only for numbers

  4. for loops can only work with dictionaries

Q4. What would be a good time to use a while loop in a game?

  1. To run a game a specified number of times

  2. To run a game forever

  3. To keep a game going while a certain condition is true

  4. To end the game

Q5. What symbol is used to write comments in the code that are not a part of the code?

  1. ?

  2. *

  3. ()

  4. #