Variables, lists, conditions and loops on real work examples
Learn the eight building blocks behind almost every AI-written script: variables, types, lists, dictionaries, if, for, range and functions. Practise reading code on a shop's sales and asking AI to explain a line you do not get.
Why read code if AI writes it
AI writes code fast, and it makes mistakes with the same confidence it answers with. It can pick the wrong column, use the wrong discount threshold, or leave out a day of revenue. You can only catch that if you understand what the script says. You do not need to write from scratch. It is enough to recognise eight building blocks that make up almost every working script: variables, types, lists, dictionaries, conditions, loops, range and functions.
This whole lesson uses the sales of the shop from lesson 1. Create basics.py in your work-python folder and try the examples as you read.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


