Chrysolites Tech Academy

Video by freeCodeCamp.org · taught by Treasure Porth · streamed from YouTube. All rights remain with the creator.

Lesson 1: Python From the Ground Up

About this lesson

This lesson is a complete first course in Python, built so that you write code from the opening minutes instead of only watching it. It is organised in five stages. The first covers syntax fundamentals: how to store values in variables, how numbers and text behave differently, and how to show results on screen and take input from a person. The second stage turns to logic and collections, introducing true-or-false values, comparisons, and the lists and dictionaries that let one name hold many pieces of data. Stage three is control flow, where if statements let a program choose between paths and loops let it repeat work across every item in a collection. Stage four is about modular code: you learn to wrap steps inside functions, pass values in, return results, and split a growing program into parts that can be reused. The final stage is defensive programming, which means expecting things to go wrong, reading error messages, and catching problems such as invalid input before they stop the program. Along the way the teacher builds three small projects that put each stage to use: an expense splitter that works out what everybody owes, a word scramble game, and a queue manager for a karaoke night. The pace suits complete beginners, and nothing needs to be installed before you start. Pause often and type the examples yourself, since writing code is how it sticks. When you finish, read Chapter 1 of the course book, which restates the core ideas with a type table, an indexing diagram and a worked bill-splitting example.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.