Python · Stage 6 – Reusable Code · Lesson 33 of 50

What Is a Function?

Understand reusable named instructions before learning function syntax.

Copying the same instructions into several places makes mistakes harder to fix. A function gives that work one home and a meaningful name.

print("Welcome")
Line-by-line explanation
  1. print is a function Python already provides.
  2. The function name describes its job.
  3. Round brackets contain the information given to it.