
Welcome to the start of your Python coding journey. I'm Stephen, and I'm looking forward to guide you to learn Python coding over the coming hours…
This course covers Level 1 of the Codetoday Unlimited curriculum. This curriculum is the most extensive curriculum for children and teenagers you'll find, based on a decade of experience teaching children and teenagers.
Following this level, you can continue with the rest of the core curriculum (Levels 2 - 5) and then move on to the Intermediate and Advanced levels.
Learn Python coding with the turtle library by importing turtle, naming a turtle, and using forward, left, and circle to draw; practice by making a simple smiley face.
Split your screen into two windows—one for the video and one for coding—and use shortcuts to switch between them, maximizing space and learning efficiency.
Practice building a smiley face with Python's turtle by learning key commands like dot, pen size, pen up, and forward, and mastering the importance of order and syntax.
Learn how color works in Python by using quotes to pass color names, adjust Fred's appearance, and practice drawing a smiley face to communicate with your computer.
Explore the dry principle—don't repeat yourself—using Python's for loop with turtle graphics to draw squares, adjust speed, and create rotating patterns and swirls.
Explore how Python repeats drawing with a for loop and range 500 to create growing patterns using turtle, dot size, and indentation, then experiment with angles, colors, and two turtles.
Learn to create interesting patterns using turtle graphics, color changes, and multiple turtles. Discover how to make them draw simultaneously with synchronized for loops.
Learn to draw a flower in Python using the turtle graphics and a for loop to create six petals and a middle dot, reinforcing dry code and repetition avoidance.
Use a single variable for number of petals to avoid the don't repeat yourself principle, adjust the loop and angle with that value, and name turtle and screen objects.
Import the random module, use randint to generate random integers between 1 and 10, and print five results inside a for loop.
Import turtle, create Fred, and learn to move by coordinates using set X and set Y to place Fred at specific positions, with zero at the screen's middle.
Complete the chapter one final project by rendering a starry night with a crescent moon and stars scattered randomly across the sky at uniform sizes.
Draw a star, place it at a random position, and generate 200 stars with a for loop using turtle and random, on a black background with white stars.
Apply finishing touches to the starry night project by configuring star count, using tracer zero, updating the window once, randomizing star sizes, and hiding the turtle.
Explore extra one, a concise, non-graphics recap of chapter one concepts using non-turtle projects, offering a quicker alternative you can skip or return to before continuing to chapter two.
Learn how a Python program talks to the user with print and input, using strings and variables to store responses for two-way interaction.
Treat variables as boxes that store input, label them, and update contents to print values like names or numbers as the program runs.
Learn how for loops repeat code efficiently using range to print multiple user names, illustrating the dry principle and how to repeat input and output in Python.
Explore the Python random module by using randint to generate numbers between 1 and 100, store results in a variable, print them, and loop ten times for repeated output.
Move to replit for python projects, choose python or python with turtle, create a project, turn off ai, and use turtle.done to keep the window open.
Move to PyCharm (preferred) after installing Python from python.org, set up a project, and run Python files with turtle and autocompletion.
Split your screen to run two browser windows—one for videos and lessons, the other for coding in PyCharm, with the video playing or pausing as needed.
Explore while loops in Python as an alternative to for loops, learn to repeat code forever with while true, and manage turtle graphics in PyCharm and Replit.
Learn to code a pair of turtles named Fred and Mary that face away and move away from each other forever using Python's turtle module and a forever while loop.
Learn to define a Python function to draw a square with turtle, replacing repetition. Create make_square, call it to draw multiple squares at different positions.
Define a make_square function, call it directly or by responding to on key press events, and build an interactive turtle program that draws squares when the s key is pressed.
Learn to control a turtle named Fred with keyboard commands by defining a go forward action and turn left, then bind them to keyboard arrows to move and draw.
Extend a turtle drawing program by adding start/stop drawing, color controls (red and random color), and line thickness, using keyboard bindings to move the turtle and draw.
Create color-changing functions, including random color via random.choice, bound to keys for a turtle drawing program, and implement safe pen-size increase and decrease.
Try crafting a spinning space station using turtle graphics, building on stars and a flower-inspired center, and animate it with a forever while loop and clear drawing commands.
Build a spinning space station animation in Python with turtle, using a draw_space_station function, a number_of_pods variable, and frame updates via tracer and clear.
Master the while loop in Python by repeating actions with random numbers from 1 to 25 and stopping when a number exceeds 20, turning infinite loops into guided repetition.
The lecture explains the difference between while and for loops in Python, showing for loops repeat a fixed number of times and while loops run until a condition is met.
Define your own functions in Python, learning to greet a user by name with input, variables, and format strings using f-strings and placeholders, and calling the function multiple times.
Build a from-scratch 2d python game in chapter three, featuring a hungry turtle that eats pellets, tracks score, and ends after ten, with arrow-key controls and side teleports.
Plan the game by listing all on-screen objects and actions in plain English, detailing the turtle player, continuous movement, left-right steering, teleport, food pellets, scoring, and levels.
Begin coding now and practice before watching, creating the hungry turtle game player. Set up a light green window with a purple turtle sized 1.5.
Move the turtle player forward continuously using a while loop, control its speed with a player speed variable, and bind left/right keys to turn commands.
Implement teleportation for the player turtle: detect when it leaves the screen on any edge and reappear on the opposite edge, then continue movement.
Explore Python console, create variables and strings, and distinguish assignment from comparison using equals and equals equals operators, then practice booleans and comparisons with greater than and less than.
Apply the if statement in Python to decide when Fred's x score exceeds the screen edge, using a greater-than check to trigger actions.
Learn to detect when the turtle crosses screen edges and teleport it to the opposite side by checking x and y, and updating the position inside the main loop.
Learn to implement teleporting at all four screen edges by using width and height variables, combining edge checks, and flipping the player's position to the opposite edge.
Create a pink food dot for the turtle, place it at a random position on the screen using integer bounds, and drive gameplay with the main while true loop.
Create a turtle eats food mechanic where hitting food moves it to a new random position; use distance checks, a move food function, and a perpetual game loop.
Create a score variable starting at zero; increase it when the turtle hits food, and display the score in the title with an f-string, using food size to detect collisions.
Learn how to finish a Python turtle game by replacing an infinite while true loop with a score-based condition, stopping after five food pellets and signaling game end.
Explore the Python time module to build a timer for the hungry turtle game, using time.time to measure seconds since a fixed date and control run duration.
Store the time in a start timer variable with time.time(), then compute elapsed time by subtracting start timer from the current time, and apply this to the Hungry Turtle game.
Learn to add a timer to the hungry turtle game by importing time, starting the timer before the while loop, computing elapsed seconds, and displaying it in the title bar.
This course introduces the basics of Python coding using hands-on projects designed specifically for a younger audience by leading Python educator Stephen Gruppetta. This course follows the Codetoday Unlimited curriculum. You can enrol your children and teenagers on this course.
All key topics are introduced using engaging projects with visual elements. The projects encourage students to be creative by programming animations and games.
The course focuses on ensuring students understand why things happen the way they do in programming and not just learning how to write commands.
I've been teaching Python programming to children and teenagers for a decade and thousands of parents have already entrusted me with their children's learning.
The first sections of this course focus on teaching the fundamentals of coding in Python, ensuring the key concepts are understood well. The final section brings all the topics together in the final project: building a 2D graphics-based game using Python's `turtle` module.
Key topics introduced in this course include:
variables
`for` loops and `while` loops
defining functions using `def`
control flow using conditional statements
planning a computer program
dealing with errors and bugs
the basics of game design
other coding best practices
This course is perfectly-suited to give a solid foundation to your children and teenagers who are keen to learn coding properly.
This is Level 1 in the Codetoday Unlimited curriculum, the most extensive curriculum you'll find for children and teenagers. I believe in providing young learners a platform to go beyond the basics. Following this course, your sons and daughters can proceed to the the rest of the core Codetoday Unlimited curriculum, which includes Levels 1 - 5, and then extend their knowledge further with my Intermediate and Advanced Level courses.