
Discover computational thinking and programming fundamentals with Python by building a virtual car, exploring an interactive streets environment, and progressing through rounds of broad concepts to deeper mastery.
Install python 3 and add to path, install visual studio code with python extensions, download and extract course material, then run a local server at localhost:8000 to verify hello world.
Set up python 3 and Visual Studio Code on Mac, install Python extensions, download course materials, use the terminal to run Python 3 start.py, and open localhost:8000 in Chrome.
This lesson explains how computer programs work using statements that express actions and a top-to-bottom execution order, illustrated by a shopping program and a green execution arrow.
Launch a local web server to access tutorial materials, view the hello world output in the console, and practice writing and running a first Python program that prints hello world.
Learn how computer programs express actions through statements and follow a fixed execution order. See a shopping program with eight statements and a green arrow showing top-to-bottom execution in Python.
Open the intro to programming folder and run python ./start.py to begin. Then open localhost:8000 in Chrome and load the course material in VS Code, running round one and statements.
learn to move a virtual car forward by 20 steps using a step command, exploring how programs describe actions within the world variable and how commands build movement.
Explore functions and methods and the separation of concerns in Python, learn the difference between defining and calling, and see how def structures a shopping program into reusable tasks.
Define and invoke functions to move a car in steps, replacing copy-paste code with concise, reusable methods. See how functions call other functions and enable higher-level abstraction.
Learn how variables store data in Python, including integers, floats, booleans, strings, and lists; assign values with equals, reference by index starting at zero, and distinguish strings from booleans.
Explore variables as containers in Python, learn to assign values with equals, store numbers, strings, booleans, and lists, and access list elements by index.
Explore looping concepts by using the for each loop to repeat actions, then optimize with Python helper functions like range to shorten code and perform tasks like brushing teeth.
Learn to use loops to repeat commands, using for loops and python's range to move a car forward by fixed steps, with scope-aware variables and concise function abstraction.
Learn how to pass values into functions and represent general ideas with function calls. See how scope resolves similarly named variables from local to global using a house analogy.
Pass a step count as a parameter to a function, moving the car forward by any number of steps, orchestrated by an async main.
Learn to make Python programs interactive by using input to prompt for a number, validate it, and return that value to drive the car forward, with functions that speak back.
Learn to build a Python function that gets the number of steps from the user, converts the input to a number, and returns it to move the car.
Learn conditional branching with if statements and else, and repeat actions until a condition is true using while loops in Python, illustrated by hair messy and thirst scenarios.
Drive the car forward with a while loop that checks is road ahead available. Count steps with a steps counter and use if statements to warn about gas at 100.
Combine prior lessons with new techniques to script a virtual car that cruises through a city until it runs out of gas.
Discover asynchronous programming with async and await, learn how the event loop yields the execution token, and see how sleep enables smoother car animation by updating the screen between steps.
Script a virtual car that moves forward along roads, uses an async turn, and loops until no road remains, enabling cruising around the city.
Explore boolean logic in Python using true and false values and the and operator, with examples like x greater than 5 and y equals John Snow during a while loop.
Explore global variables and how the global keyword lets a shared counter be accessed across functions. See a tallying example with count up and count down buttons updating the counter.
Define a global car gas tank and deduct 30 steps per move, using while car gas tank > 0 to stop when fuel runs out and align movement checks.
Explore basics in Python programming, as round two covers arithmetic operations, lists, dictionaries, for loops, nested loops, exception handling, input/output, plus recursion, divide and conquer, and backtracking with guided exercises.
Starting to learn how to program can seem like a daunting task if you’ve never done it before, especially if you try to go from zero knowledge to programming an entire car to drive around a city! But it doesn’t have to be that way. You can learn in stages, and this course will help you with that process. In each stage, we’ll build on what you’ve already learned and give you another level of challenges and concepts to work with that are more complex than what you’ve done previously.
This course will focus on how to get started with programming while learning Python. We will use an innovative virtual world with cars and roads, learning how to use Python and programming concepts to make them navigate the streets.
Python is a great beginner language because it’s designed to be easy-to-use. It’s also the fastest growing programming language. It can be used for web development, data analysis, game design, artificial intelligence, and much much more!
The course is beginners, and no background in programming is needed. I apply the years of experience in teaching and guiding students in computational thinking to help you get started quickly in bite-sized interactive lessons lessons.