Teach Your Kids to Code

This book from No Starch Press helps parents teach their kids to code in Python. It's a fun way to spend time and learn about an easy to use language.

Python is a really interesting programming language. It’s extremely easy to learn the basics and evolve to creating applications.

Yet Python is geeky. It is used a lot in science fields, as well as scripts and applications in corporations. There are no major open source Python projects like WordPress and Joomla for the PHP programming language that allow you to build websites without knowing much (or any) PHP. However, there are Python projects like Flask that let you build websites if you know Python.

Python is arguably one of the best languages for beginners to learn because it is well designed and much of what you learn can easily translate to other languages. You can play with Python and never go beyond a few basic commands and ideas. Or you can learn how to build full blown applications. And you can leverage what you know about Python to learn Ruby, JavaScript, Java, and other languages.

This dual quality of Python — lots of fun and easy to use yet serious and capable — makes it the perfect language for kids to learn. Even better, it’s the perfect language for parents to teach their kids so both learn a little programming together.

No Starch Press has published a book to help parents do exactly that, Teach Your Kids to Code. As their subtitle says, it’s a parent-friendly guide to Python programming. It also happens to be an excellent guide to learn Python if you’re single, elderly, a Martian, and otherwise don’t fit the parent plus child model.

The book begins by making an important point: people shouldn’t learn to code simply to become programmers. Learning how programming languages work, having a little fun making your computer do things, can expose you to how technology works in our daily lives. Learning to code helps people become active consumers, and in many cases, creators of technology, instead of passive consumers of technology.

Once expectations are set, and you have a Python environment set up on your computer, the book dives into a really fun part of Python, the ability to draw all sorts of lines and squares and circles with a few lines of code. The magic is in a library of code called Turtle. Your first line of Python code imports this library into your small application. Then you get to go a little nuts, telling your computer with a few simple lines of code how and where to draw squares, circles, spirals, add color, and more. And all the steps are clearly explained. It’s a fun, easy introduction to Python.

From drawing pictures, the book leads you through math, loops, conditional logic, randomness, and other concepts before launching into fun ways to use Python to create games. For example, the book shows how to use a lesson on creating random choices to code a simple card game. Or you can update the Pong game to use smiley faces. More seriously, you also learn how to retrieve clicks and other user inputs to make games work.

This approach lets you learn Python as little or as much as you want with your kids, or by yourself. If you’re really motivated, you also can learn how to code a number of fun games.

Learn More

Teach Your Kids to Code (No Starch Press)

http://www.nostarch.com/teachkids

Author

  • Tim Slavin

    Tim is an award-winning writer and technologist who enjoys teaching tech to non-technical people. He has many years experience with web sites and applications in business, technical, and creative roles. He and his wife have two kids, now teenagers, who are mad about video games.

Also In The June 2015 Issue

Automate the Boring Stuff with Python

This book helps average non-technical people free themselves from mundane computer tasks.

Solar Cockroaches, Water Rockets, and Pinhole Eyeglasses

Here are a few of the many fun summer projects at Instructables.com website.

Bitsbox: Monthly Coding Projects in the Mail

Every month the Bitsbox service delivers a colorful booklet full of fun coding projects for kids to do then share with friends and family.

Simple and Fun 3D Models to Print

Here are a number of simple and fun 3D models to print.

FUZE Computer Teaches Kids to Code

The FUZE computer is a 1980s computer design with the brain of a modern Raspberry Pi. It's ideal for teaching kids to code plus build electronics projects.

An Interview with Paul Chayka

Paul Chayka talks about Robotics And Beyond, an after school tech program that teaches coding, robotics, circuit design, and much more.

Teach Your Kids to Code

Learning Python is a fun way to spend time and learn programming together.

Kano Computers

The Kano computer is a Raspberry Pi computer with a spiffy installation process (and user manual) and a carefully thought out online experience.

Functions and Procedures

An introduction to programming functions and procedures using pen and paper instead of code. Includes lots of examples and exercises.

Ruby

Ruby is a highly flexible programming language used in many large scale online applications at Twitter, Kickstarter, and other companies.

June 2015 Learn More Links

Links from the bottom of all the June 2015 articles, collected in one place for you to print, share, or bookmark.

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

June 2015 News Wire

News and project stories about kids, coding, computer science, and how we use technology in our daily lives.

Create Art with the Paper App + Mix

The Mix community lets you find and share artwork to create projects with free Paper software.

Interested but not ready to subscribe? Sign-up for our free monthly email newsletter with curated site content and a new issue email announcement that we send every two months.

No, thanks!