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


Now that you have finished this chapter, can you answer these questions?

Q1. What must a function begin with?

  1. def

  2. Function

  3. Input

  4. Whitespace

Q2. What are conventions that are used to name variables and functions?

  1. Must use lowercase letters

  2. Multiple words need to be connected with underscores

  3. Cannot use a number to start a name

  4. All of the above

Q3. Every line after the first line of a function must be?

  1. Named using numbers

  2. Have a colon, :

  3. Indented

  4. Use parentheses ()

Q4. If you want a code file to run in Python, you need to end it with?

  1. .txt

  2. .odt

  3. .pdf

  4. .py

Q5. To run a code file in the terminal, what do you need to do?

  1. Type the name of the file in the terminal

  2. Type the name of the file in the terminal while running Python

  3. In the correct folder, type Python and the name of the file

  4. All of the above steps in order