Lesson 17 · Functions

Programming basics · 3 min · See the playlist on YouTube ↗

✓ You already watched this lesson

If the same greeting is written in three places, changing it costs three times. A function stores it just once, and you call it whenever you need it.

🎯 The challenge of this lesson

Add a third message to the greet function, and check that it shows up in all three greetings without touching the program.

Practise in the app

Read the written page for this lesson →

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…