
What is coding, and why is it good for your kids? Plus, how to get the most from this course.
How to download and install the FREE Python programming environment step-by-step
How to install the NEW Python version 3.6 on a Mac.
How to install the NEW Python version 3.6 on Windows PC's.
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!
Write and save your first Python program.
Run Python programs, and change them to make them even cooler!
Run and modify a fun, visual program that draws a multi-color spiral.
Chromebook update: Use the free web site https://repl.it to code in Python on your Chromebook, iPad, or any device with a web browser - no software installation required!
Repl.it is also a great option for students at school who don't have administrator privileges to install software. Surf to https://repl.it, create a free account and verify your email, and start coding in Python now!
By the end of Section 1, you should:
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!
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.
Quick, clear how-to for installing Python on PC, Mac or Linux, with screenshots!
Introduction to Turtle graphics in Python, and an overview of what you'll learn in Section 2.
Write a 5-line Turtle program in Python from scratch! Draws a hypnotizing square spiral on your screen!
Change your program to make it even cooler! Modify the square spiral to draw a winding spiral staircase/pyramid shape!
Use the circle() function in Python's Turtle graphics to draw circles of varying sizes for a cool pattern!
Add color to your turtle creations using the pencolor() function.
Use a list of colors to paint a four-color square spiral!
Change the background color of your turtle screen by using turtle.bgcolor().
Store a simple number value in a variable and use it in a program to change shapes easily.
Challenge 1 Color Spiral 10
An introduction to variables in Python, and an overview of what you'll learn in Section 3.
Create your own variables using strings, and store user input in string variables.
Use basic math operators in Python to perform calculations.
Perform math operations using the Python Shell.
Understand and correct syntax errors - when your computer can't understand you in Python.
Use variables to store numbers and perform calculations in the command-line Python Shell.
Write a program using Python math operators to figure out the total cost of a pizza order, including sales tax.
Write a program that stores strings of text as variables, and says your name on the screen 100 times!
Write colorful text on the Turtle screen, and create a multicolor spiral of your name!
Store values in a list or array, and use a list of colors to draw in a colorful pattern on the screen.
Let Python do your Math homework! Ask for input, evaluate expressions, and do a variety of math functions interactively in your own program!
Introduction to loops in Python, and an overview of what you'll learn in Section 4.
Learn to code faster and cleaner using loops to repeat a set of statements as many times as you wish!
Build your own for loop from scratch to create a beautiful rosette shape with four circles!
Modify a for loop to draw rosettes with 6 and 10 circles each!
Ask the user for input using GUI windows in Turtle! Let the user decide how many circles to draw on the screen!
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.
Create your own while loop to repeat while a condition is True or until the condition is False.
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.
Draw a psychedelic spiral of spirals using nested loops (a loop inside another loop)!
Introduction to conditional expressions in Python, and an overview of what you'll learn in Section 6.
Use an if statement to make decisions using conditional expressions.
Use conditionals and Boolean expressions to control program flow.
Write conditional expressions using comparison operators (<, >, ==, !=, <=, >=) in Python.
Use if-else statements to choose between two alternative program paths.
Use conditionals and user input to let the user decide what shapes to draw!
Test a variable to see if it is odd or even using the modulo operator, %. Draw a picture with different odd and even shapes!
Write if-elif-else statements that select from among a number of options.
Use and and or to test multiple conditions at once.
Learn to manipulate strings using .upper() and .lower(), and use ord() and chr() to convert characters into their ASCII numeric equivalents and back again!
Build your own secret message encoder-decoder program to send secret messages to your friends!
Challenge 1 Rosettes And Spirals
Challenge 2 Encoder Decoder with a Custom Key
An introduction to the random module in Python, and an overview of what you'll learn in Section 6
Build a high-low guessing game to guess a random number between 1 and 10, or 1 and 100!
Pick a random color from a list in Python.
Get the size of the turtle screen, and understand turtle (x,y) coordinates.
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!
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).
Compare the value of two cards by using the .index() function.
Use a while loop and input to create a game loop that asks the user whether they'd like to play again.
A fun, playable random High Card game, just like the children's card game War!
Learn to simulate the rolling of dice using the random module in Python.
Sort items in a list with the .sort() function, and test for a Yahtzee! in our dice program.
A complete Yahtzee-like program that tells whether you rolled three, four, or five-of-a-kind! Yahtzee!
Move the turtle to random locations, and understand coordinate reflections across the x and y axes.
Challenge 1 Kaleidoscope v2
Challenge 2 Kaleidoscope v3
Challenge 3 War Complete
An introduction to functions in Python, and what you'll learn in Section 7
Learn to group code into reusable functions
Define and call your own functions in Python
Pass information to your functions to make them more powerful.
Demonstrate functions with parameters by building a cool random smiley app.
The finished random smiley app - a function that takes parameters to draw smiley faces all over the screen :).
Learn to return a value from a function.
Build a cool Ping-Pong calculator to find out your height and weight in Ping-Pong balls!!!
Create your own interactive drawing program by listening for mouse clicks on the screen!
A beautiful upgrade to the Turtle Draw app, with full color and more extras!
Build your own Etch-a-Sketch in Python by listening for key presses in your drawing app!
Draw a colorful random spiral wherever the user clicks their mouse!
Draw a smiley face stamp wherever the mouse is clicked!
Create a colorful kaleidoscope of spirals by mirroring points around the four quadrants (or fourths) of the screen.
Take screenshots of your creations to share with your friends, or the world!
Challenge 1 Mirrored Smileys
Challenge 2 Ping Pong
Challenge 3 Click Arrow Draw
Continue your coding journey with resources at code.org and Codecademy, and explore the book 'Teach your kids to code' for bonus chapters on spy game programming and animation in Python.
Dr. Payne's TEDx Talk on Coding and Cyber as the New Literacy, 15 min.
** 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!
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:
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.
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
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!
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!
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!
Happy Holidays from the Payne Family and Teach Your Kids to Code!
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!
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!
My youngest son (Max) created a cool, tie-dye, rainbow spiky spiral using just 10 lines of code! It turned out so cool that I had to share it with all of you! :)
Join over 38,000 students from 182 countries learning Python (and teaching it)!
Now includes coding for Chromebook users! Teach yourself (and your students) 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, Teach Your Kids to Code: A Parent-Friendly Guide to Python Programming (No Starch Press).
Updates: New videos added to section 1 for coding on Chromebook, iPad and more!
Give Your Kids a Huge Advantage in a High-Tech World
Quickly master new problem-solving skills in Python with colorful, fun examples
Teach beginners 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, 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 students up to college freshmen.
Quick, hands-on lessons will get you coding your own apps from scratch in minutes. Over 100 video lectures and six and a half hours of content in short, 2-to-8-minute videos 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 22 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 son, Alex! New Turtle Gallery code and 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