PythonBeginnerabout 8 hours17 lessons
Recommended first: Turbo Garage
Lantern Lane Print Shop makes posters one ink at a time, and tonight it needs yours. You will write Python that mixes inks as colour tuples, lays out a grid of coloured cells, cleans up the shop's order forms, keeps a named palette, ranks inks, and rolls seeded dice to print the same surprising poster again and again. A live press room redraws the poster from your code after every lesson.
Each lesson adds one working part to your build.
Chapter 1
A colour is three numbers. Bundle them, blend them, and print them as hex codes.
Chapter 2
A poster is rows of coloured cells. Build one, paint it with loops and count its inks.
Chapter 3
Cut, clean and centre the poster's text, then keep every ink in a named palette.
Chapter 4
Write shorter code, rank the inks, add seeded chance, survive bad input, and finish the poster.
One-line lists: comprehensions
16 min90 XPAdds Pastel palette
Rank the inks: sorting with key
15 min90 XPAdds Ink ranking
A dash of chance: seeded randomness
18 min100 XPAdds Seed press
When the order form is wrong: try and except
18 min100 XPAdds Order desk
Ship it: import and tidy up
18 min120 XPAdds The finale