$ ▍
Instructor: Daniel academybeginnerPython5.0
This course is for people who have never written a line of code and quietly suspect programming is not for them. It is. You will not memorize definitions. From lesson one you write working programs and the built-in trainer runs them against real test cases, the same way a working developer checks their code. Each module gives you a little theory, then a task, then instant feedback, and ends with a short quiz so you can feel the ground under your feet before moving on. By the end you will have written dozens of small programs and built a real command-line app of your own, and Python will feel like a set of tools you actually know how to pick up, not a wall of jargon. Everything is free and runs in your browser.
8 modules · 33 lessons
A fragment of the course's final project. Every graduate writes this code with their own hands.
class Wallet:
def __init__(self):
self.entries = []
def add(self, label, amount):
self.entries.append((label, amount))
def balance(self):
return sum(amount for _, amount in self.entries)
wallet = Wallet()
wallet.add("stipend", 1200)
wallet.add("keyboard", -450)
wallet.add("pizza", -120)
print(f"balance: {wallet.balance()}")# run it to see the output