Skip to main content

Course

Python

PythonPart 3 of 7 · Chapter 3 of 4

Naming a Piece of Work

Copy the same five lines into three places in a program and you have created three bugs waiting to happen, not three features. Wrap them in a function once, and watch every copy become a single name you can call.


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.