Teach Your Kids to Code: Learn Python Programming at Any Age
4.7 (344 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
4,345 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Teach Your Kids to Code: Learn Python Programming at Any Age to your Wishlist.

Add to Wishlist

Teach Your Kids to Code: Learn Python Programming at Any Age

Short, colorful apps and games you & your child can program right away, for ages 5 to 95! PC, Mac and Linux!
4.7 (344 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
4,345 students enrolled
Created by Dr. Bryson Payne
Last updated 12/2016
Current price: $19 Original price: $30 Discount: 37% off
30-Day Money-Back Guarantee
  • 6 hours on-demand video
  • 4 Articles
  • 12 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Code your own apps and games in Python for Mac, PC, or Linux, from pre-K to college level
  • Draw colorful spirals and shapes with Turtle graphics in Python
  • Create fun, playable games like War, Yahtzee, and Rock-Paper-Scissors
  • Build interactive apps that respond to user input and mouse clicks
  • Master variables, loops and functions to prepare for more advanced programming courses (and a brighter future)!
View Curriculum
  • A computer (PC, Mac, or Linux - even Raspberry Pi!). You'll download and install Python 3 (FREE!) with step-by-step instructions in Section 1.
  • If you can use a text editor (Notepad, Word, etc.), you can program in Python!
  • No prior programming experience needed.

***** Join over 4,100 students from 148 countries learning Python the fun and easy way (and teaching their kids)! *****

Two new BONUS videos added! Teach yourself (and your kids) to code fun, colorful apps and games in Python, the powerful programming language used at tech companies and in colleges worldwide. Learn coding step-by-step from Computer Science Professor Dr. Bryson Payne, author of the Amazon #1 New Release and Top 10 Best Seller in Children's Programming Books, Teach Your Kids to Code: A Parent-Friendly Guide to Python Programming (2015, No Starch Press).

Give Your Kids a Huge Advantage in a High-Tech World

  • Quickly master new problem-solving skills in Python with colorful, fun examples
  • Teach younger kids to code using Turtle graphics, with text-based games and apps for older learners
  • Build your own playable games and create beautiful graphics
  • Learn the basics of coding, from variables to loops and functions, with interactive, engaging apps

This is the kind of course you can enjoy with
your kids!

Packed with fun examples, colorful graphics, and easy-to-follow plain English instruction, Teach Your Kids to Code is the course parents and kids, teachers and students can enjoy together, as they build one of the top job skills of the 21st century! Python is a great first language for beginners, but it's powerful enough to be used in companies from Google to IBM.

I designed this programming course to be easily understood by absolute beginners, with example code I used with my own pre-schoolers all the way through the apps I teach to college freshmen.

Quick, two- to eight-minute lessons will get you coding your own apps from scratch in minutes. Over 100 video lectures and 7.5 hours of content will give you the practice you need to master the powerful new skill of coding.

Everything you need to get started right away

Complete with working code downloads and high-definition videos, you'll be able to work alongside a professor with 18 years' teaching experience and over 30 years of programming knowledge. You'll also receive a Certificate of Completion upon finishing the course.

No Risk: Preview videos from Sections 1, 2, and 4 now for FREE, and enjoy a 30-day money-back guarantee when you enroll - zero risk, unlimited payoff! And, we've made this course easy to afford at just $30 so parents and students can get started now!

Sign up for this course and get started coding today!

* Programming Challenge Solutions added to all 7 Sections, plus new Bonus videos, including a new one with my 7-year-old son, Alex! New Turtle Gallery code and Bonus Q&A video added this month- keep the feedback and questions coming! Thanks! *

Praise for Teach Your Kids to Code:

★★★★★ "Inspired" - This is an inspiring course taught by an inspired teacher. The examples are well-chosen -- demonstrating principles through engaging, colorful projects rather than by teaching abstract principles first. While I wish the instructor weren't quite so repetitiously exuberant, this is at worst a minor stylistic blemish and might even be a plus for kids viewing it. — Kent Osband, Udemy student

★★★★★ "Excellent path into Python" Not just for kids...use this course as the perfect Python primer. Clear examples, that build quickly into programs, leading to learning challenges. Bryson's delivery is well paced and good fun. — Sean Jon Darcy, Udemy student

★★★★★“Dr. Bryson Payne is a computer scientist and professor of the highest caliber, and with Teach Your Kids to Code, he brings the power of computers within easy reach for learners young and old."—Dr. Antonio Sanz Montemayor, Informatics Professor, Universidad Rey Juan Carlos, Spain

★★★★★“The concepts in Teach Your Kids to Code can help any young person enhance their college prospects and expand their career opportunities."—Dr. Raj Sunderraman, Department Chair of Computer Science, Georgia State University

[For the Book version on Amazon] ★★★★★ “Dr. Payne set us on the path that led us to our dream jobs! With Teach Your Kids to Code, he's providing parents and teachers everywhere the chance to do the same for the next generation of creative problem-solvers."—Shah and Susan Rahman, Riot Games 

Who is the target audience?
  • Perfect for homeschooling parents or K-12 parents and teachers who want to give their students a HUGE advantage by learning to read and write code.
  • Apps and games suitable for kids from Pre-K through College Freshmen.
  • Kids can follow the course by themselves from 3rd grade through college age, but you can introduce children as early as preschool. (I started coding with my kids when they were 2 and 4 years old.)
  • Includes examples from chapters 1-7 of the book, Teach Your Kids to Code, by Dr. Bryson Payne (2015, No Starch Press).
  • This online course does not include Pygame programming.
  • This course is not for experienced Python coders, unless you want to learn to make beautiful Turtle graphics & games, or code with your kids.
Curriculum For This Course
Expand All 110 Lectures Collapse All 110 Lectures 07:29:46
Getting to Know Your (Programming) Environment
10 Lectures 18:46

What is coding, and why is it good for your kids? Plus, how to get the most from this course.

Preview 02:30

How to download and install the FREE Python programming environment step-by-step

Preview 03:06

Bonus Q&A Video: Students AJ & Paula asked for a video showing Python installation on Windows and whether the newer Python 3.5 would work for all the lessons in the book and online course - this video answers both questions (spoiler alert, it's a YES!) - thank you, AJ & Paula, for posting great questions!

Preview 04:15

Write and save your first Python program.

Preview 02:38

Run Python programs, and change them to make them even cooler!

Preview 01:28

Run and modify a fun, visual program that draws a multi-color spiral.

Preview 02:02

By the end of Section 1, you should:

  • Have a fully functional Python environment and text editor (IDLE)
  • Be able to enter programming commands directly into the Python Shell
  • Be able to write, save, run and modify short Python programs in IDLE
  • Be ready to try more advanced programs in Section 2
Preview 00:41

The simple YourName.py app has all the necessary components for us to build a much more interesting program, like the old-fashioned Mad Libs® word games.

Try the challenge problems at the end of each section to extend your learning even further, and write code that's even cooler!

Preview 02:06

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.

Preview 1 page

Quick, clear how-to for installing Python on PC, Mac or Linux, with screenshots!

Step-by-Step Python 3 Setup for PC, Mac or Linux (with Screenshots)
21 pages
Turtle Graphics in Python
12 Lectures 38:04

Introduction to Turtle graphics in Python, and an overview of what you'll learn in Section 2.

Preview 00:56

Write a 5-line Turtle program in Python from scratch! Draws a hypnotizing square spiral on your screen!

Preview 06:36

Change your program to make it even cooler! Modify the square spiral to draw a winding spiral staircase/pyramid shape!

Preview 02:24

Use the circle() function in Python's Turtle graphics to draw circles of varying sizes for a cool pattern!

Preview 03:41

Add color to your turtle creations using the pencolor() function.

Preview 02:09

Use a list of colors to paint a four-color square spiral!

Preview 06:56

Change the background color of your turtle screen by using turtle.bgcolor().

Preview 03:40

Store a simple number value in a variable and use it in a program to change shapes easily.

Preview 05:13

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Preview 2 pages

Challenge 1 Color Spiral 10

S2P1 Programming Challenge Solution: 10-color spiral!

Challenge 2 Color Spiral Choice
S2P2 Programming Challenge Solution: How Many Sides?

Numbers and Variables in Python
14 Lectures 49:54

An introduction to variables in Python, and an overview of what you'll learn in Section 3.

Intro to Variables: Where we keep our stuff

Create your own variables using strings, and store user input in string variables.

Numbers and Math in Python

Use basic math operators in Python to perform calculations.

Python Numbers and Operators

Perform math operations using the Python Shell.

Math in the Python Shell

Understand and correct syntax errors - when your computer can't understand you in Python.

Syntax Errors: What did you say?

Use variables to store numbers and perform calculations in the command-line Python Shell.

Variables in the Python Shell

Write a program using Python math operators to figure out the total cost of a pizza order, including sales tax.

Programming with Operators

Write a program that stores strings of text as variables, and says your name on the screen 100 times!

Strings: The real characters in Python

Write colorful text on the Turtle screen, and create a multicolor spiral of your name!

Improving Our Color Spiral with Strings

Store values in a list or array, and use a list of colors to draw in a colorful pattern on the screen.

Lists in Python

Let Python do your Math homework! Ask for input, evaluate expressions, and do a variety of math functions interactively in your own program!

Python Math App: Python does your math homework!

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Section 3 Programming Challenges
1 page

Challenge 1 Circle Spiral Input
S3P1 Programming Challenge Solution: Circle Spiral Input!

Challenge 2 Color Me Spiralled
S3P2 Programming Challenge Solution: Color Me Spiralled
12 Lectures 51:16

Introduction to loops in Python, and an overview of what you'll learn in Section 4.

Preview 01:07

Learn to code faster and cleaner using loops to repeat a set of statements as many times as you wish!

Preview 02:41

Build your own for loop from scratch to create a beautiful rosette shape with four circles!

Preview 04:10

Modify a for loop to draw rosettes with 6 and 10 circles each!

Preview 03:59

Ask the user for input using GUI windows in Turtle! Let the user decide how many circles to draw on the screen!

Preview 04:33

A colorful bonus program from my oldest son, Alex (he was 5 when he came up with this!). Draws two sets of overlapping rosettes in red and yellow on a black background.

Preview 03:56

Create your own while loop to repeat while a condition is True or until the condition is False.

Preview 05:08

Build a colorful spiral using the names of everyone in your family! Create empty lists and add to lists using the append() function in Python.

Preview 05:44

Draw a psychedelic spiral of spirals using nested loops (a loop inside another loop)!

Preview 09:01

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Preview 2 pages

14 Lectures 47:16

Introduction to conditional expressions in Python, and an overview of what you'll learn in Section 6.

Intro to Conditions: What if?

Use an if statement to make decisions using conditional expressions.

If statements

Use conditionals and Boolean expressions to control program flow.

Comparison Operators

Write conditional expressions using comparison operators (<, >, ==, !=, <=, >=) in Python.

If Example: Old Enough

Use if-else statements to choose between two alternative program paths.

Else statements

Use conditionals and user input to let the user decide what shapes to draw!

Polygons or Rosettes

Test a variable to see if it is odd or even using the modulo operator, %. Draw a picture with different odd and even shapes!

Even or Odd

Write if-elif-else statements that select from among a number of options.

Elif Statements

Use and and or to test multiple conditions at once.

Complex Conditions: And's, Or's, & Not's

Learn to manipulate strings using .upper() and .lower(), and use ord() and chr() to convert characters into their ASCII numeric equivalents and back again!

Secret Messages: The Caesar Cipher

Build your own secret message encoder-decoder program to send secret messages to your friends!

Encoder Decoder Program

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Section 5 Programming Challenges
2 pages

Challenge 1 Rosettes And Spirals

S5P1 Programming Challenge Solution: Rosettes and Spirals!

Challenge 2 Encoder Decoder with a Custom Key

S5P2 Programming Challenge Solution: Encoder Decoder Key!
Random Fun and Games
18 Lectures 01:05:37

An introduction to the random module in Python, and an overview of what you'll learn in Section 6

Intro to Random Numbers and More in Python

Build a high-low guessing game to guess a random number between 1 and 10, or 1 and 100!

Preview 05:18

Pick a random color from a list in Python.

Colorful Random Spirals

Get the size of the turtle screen, and understand turtle (x,y) coordinates.

Canvas Size and Coordinates in Turtle Graphics

Wow! Create 50 (or more!) spirals of random colors and sizes at random locations all over your screen to create a beautiful picture and understand random functions!

The Random Spiral Program

Build a complete Rock-Paper-Scissors game to play against the computer, using the random module in Python!


Learn to create a playing card from a standard deck, complete with a face ("Two" through "Ace") and suit (clubs, diamonds, hearts, spades).

Dealing Cards

Compare the value of two cards by using the .index() function.

Comparing Cards

Use a while loop and input to create a game loop that asks the user whether they'd like to play again.

The Game Loop to Keep It Going

A fun, playable random High Card game, just like the children's card game War!

Our Finished High-Card Game

Learn to simulate the rolling of dice using the random module in Python.

Rolling Dice

Sort items in a list with the .sort() function, and test for a Yahtzee! in our dice program.

Testing for a Yahtzee!

A complete Yahtzee-like program that tells whether you rolled three, four, or five-of-a-kind! Yahtzee!

Our Finished Five Dice Game

Move the turtle to random locations, and understand coordinate reflections across the x and y axes.

A Colorful Kaleidoscope

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Section 6 Programming Challenges
2 pages

Challenge 1 Kaleidoscope v2

S6P1 Programming Challenge Solution: Kaleidoscope v2.0

Challenge 2 Kaleidoscope v3

S6P2 Programming Challenge Solution: Kaleidoscope v3.0

Challenge 3 War Complete

S6P3 Programming Challenge Solution: WAR!
20 Lectures 01:06:10

An introduction to functions in Python, and what you'll learn in Section 7

Intro to Functions in Python

Learn to group code into reusable functions

Putting Code Together with Functions

Define and call your own functions in Python

Creating a Random Spiral Function

Pass information to your functions to make them more powerful.

Parameters: Feeding our pet function...

Demonstrate functions with parameters by building a cool random smiley app.

Smileys at Random Locations

The finished random smiley app - a function that takes parameters to draw smiley faces all over the screen :).

Our Random Smiley App

Learn to return a value from a function.

Return: It's what you give back that counts...

Build a cool Ping-Pong calculator to find out your height and weight in Ping-Pong balls!!!

Using Return Values in a Program

Create your own interactive drawing program by listening for mouse clicks on the screen!

Handling Events: Turtle Draw

A beautiful upgrade to the Turtle Draw app, with full color and more extras!

BONUS: Max's Turtle Draw App

Build your own Etch-a-Sketch in Python by listening for key presses in your drawing app!

Keyboard Events: Arrow Draw

Draw a colorful random spiral wherever the user clicks their mouse!

Events with Parameters: ClickSpiral

Draw a smiley face stamp wherever the mouse is clicked!

Click and Smile

Create a colorful kaleidoscope of spirals by mirroring points around the four quadrants (or fourths) of the screen.

Click Kaleidoscope

Take screenshots of your creations to share with your friends, or the world!

BONUS: Taking Screenshots on Mac and PC

At the end of each section, you can practice what you've learned - and make even cooler programs - by trying a couple of challenges. Try them on your own, and if you get stuck, sample answers are provided.
Section 7 Programming Challenges
1 page

Challenge 1 Mirrored Smileys

S7P1 Programming Challenge Solution: Mirrored Smileys!

Challenge 2 Ping Pong

S7P2 Programming Challenge Solution: PingPong Calc 2.0

Challenge 3 Click Arrow Draw

S7P3 Programming Challenge Solution: Click+Arrow Draw!

BONUS APP: ClickRandomDots.py!
After the Course
4 Lectures 15:30
Where to Go Next

** New for August 2015: 100th Lesson BONUS Video with special guest star Alex Payne! **

Learn to use the official Python.org documentation to expand your Python programming abilities even after you finish this course. My special guest star, Alex (my 7-yr-old son), had a great idea for the Rosettes program from Section 4: let the user decide the number of circles in the rosette, and draw each circle in a different color, like a rainbow!

We'll see how to use Hue/Saturation/Value colors in Python to draw a different color circle at every angle around our beautiful RainbowRosettes.py app. You can search Python.org for new functions, modules and libraries like this to bring any idea to life!

Shot at home - Alex and I hope you'll love this special bonus video, the 100th lesson in the course! Happy coding!

SPECIAL BONUS: Rainbow Rosettes with Guest Star, Alex Payne (7 yrs old)!

My O'Reilly Webcast for "Teach Your Kids to Code" was so much fun! Over 400 registered attendees for a full hour of live Q&A! It was so awesome getting to share this information with the O'Reilly community audience LIVE that I had to share the slides with all of you to say THANK YOU for enrolling in Teach Your Kids to Code!

I've distilled over 7 hours of video and a 336-page book into a quick 26 slides that any parent or teacher can use to:

  • Engage your student with short, fun, visual programs for all ages
  • Learn to code colorful graphics in Python, and see your changes instantly on the screen
  • Build up to more advanced programming concepts like variables, loops and functions - even user interaction like mouse clicks!

You'll find the PDF with all 26 slides added here as Lecture 101, or you can watch the video recording for FREE at http://www.oreilly.com/pub/e/3422 - please let me know how your journey through the course is going, and message me if I can be of help.

O'Reilly Media LIVE Webcast: "Teach Your Kids to Code" - slides
26 pages

Slides from my DojoLive! Webinar with the team at NearSoft, November 4, 2015.

See the video recording of the full 45-minute event and Q&A at https://www.youtube.com/watch?v=1RfeSphbmRw

DojoLIVE! Presentation (November 4, 2015)
28 pages
Turtle Gallery! User-submitted cool apps in Python
6 Lectures 09:22

Bonus Video from Ms. Tribble's Kindergarten class at Silver City Elementary School! 

I spoke about Teach Your Kids to Code at Silver City Elementary, and Ms. Tribble's class was learning about the colors of the rainbow - so we created a Roy G. Biv spiral! Check it out!

Preview 07:39

My youngest son, Max (age 5), came up with this month's Turtle Gallery app: ClickFlowers.py lets you draw a colorful rosette flower everywhere you click on the screen!

October Turtle Gallery: ClickFlowers.py by Max Payne (age 5)

Mr. Bryan Fagan, a teacher at Lumpkin County Middle School in Georgia, submitted this month's Turtle Gallery winner. The code "moveturtle.py" displays the actual Turtle shape and lets the user draw using the arrow keys!

November Turtle Gallery: moveturtle.py by Mr. Bryan Fagan

Happy Holidays from the Payne Family and Teach Your Kids to Code!

December Turtle Gallery: Star.py from Mr. Reese's class at LCHS
1 page

The January 2016 Turtle Gallery winner is Miss Shannon G. (age 9) - a beautiful layered triangle using the exclusive-or operator (^)! Brilliant! Enjoy, and Happy Coding!

January Turtle Gallery: SGTriangle.py by Miss Shannon G. (age 9)
1 page

This festive, interactive Python app draws a Christmas tree, with an array of students' names as the ornaments! An awesome idea from Mrs. Julie Memler at Athens Academy!

Preview 01:01
About the Instructor
Dr. Bryson Payne
4.6 Average rating
502 Reviews
15,560 Students
2 Courses
Best-Selling Author & Professor w/students in 148 countries

Dr. Bryson Payne is the author of the Amazon #1 New Release and Top 10 Best Selling children's programming book, Teach Your Kids to Code: A parent-friendly guide to Python programming, (2015 - third printing, translated into five languages) and the forthcoming book, Fun with Java (2017), both from No Starch Press. He is a tenured full Professor of Computer Science at the University of North Georgia, and is a Certified Information Systems Security Professional (CISSP®) and Certified Ethical Hacker (CEH). Dr. Payne is also the founding Director of the Center for Cyber Operations Education at UNG, and a MOOC (massive, open, online course) instructor with over 15,000 students to his credit, from 147 countries.

Dr. Payne has taught computer science since 1998 and served as the University's first Department Head of Computer Science. He earned his Ph.D. in computer science from Georgia State University and has published articles in scholarly and industry journals, in addition to speaking regularly at regional and international conferences in computer science, cybersecurity and IT leadership. He has been featured in CIO magazine, Campus Technology, and the Wall Street Journal.

Dr. Payne has been programming computers for over 30 years; he sold his first paid program to RUN Magazine (Commodore 64) for their “Magic" column in 1985, for $10. In addition to his affinity for technology, Dr. Payne speaks Spanish and French, and is conversational in Russian and Mandarin Chinese.

He lives north of Atlanta, Georgia (USA) with his lovely wife Bev, two sons, Alex and Max, and three Bengal cats, Leo, Rocky and Pixel.