10 min read
Introduction
What programming is, the three courses in this unit, and the shop whose problems you will solve with code.
A Shop Full of Problems to Solve
Perera Corner Mart, Starlight Cinema and their prices are made up for this unit. Any resemblance to real businesses is a coincidence.
The Three Courses in This Unit
| Programming Techniques using Python — course map | |
|---|---|
In the Python course you can run every example in your browser — no installation needed to start.
Your First Taste
bill.pyPython
# A tiny program: add two pricesprice_rice = 280price_dhal = 450total = price_rice + price_dhalprint("Total: LKR", total)Expected output
Total: LKR 730
Press Run. The computer followed four instructions, in order, and printed the answer. By the end of this unit you will write programs like this yourself — and plan them first.
Practice
What does a program do?
More lessons in Introduction to Programming · Next: What Is a Program?
