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

Testing – section 3


You are almost done writing the game! Now it's time to test our code again. In your terminal/command prompt, locate the directory where you saved your tiny.py file. You can run the following command from the terminal/command prompt to check the progress of your game so far:

  python tiny.py

During this test, if everything is working correctly, your results will be the same as the test from Section 2. A blank screen will open and will be called Tiny Tennis. Congratulations!

If your program has some errors while running, look at the error messages to check whether you can figure out what is going wrong. Look for syntax mistakes, spelling mistakes, indentation mistakes, or any other errors in your code. Make sure that you are using spaces for your indentations, not tabs, or else you might have problems as well.