Programming with Python: first steps · Lesson 6 of 6

Functions: write it once, use it often

Today you will

  • Write a function with def, with parameters.
  • Send a result back with return, and use it.

Before you start: Variables, if, loops and lists, from the earlier lessons.

Opening your exercise book…

Practice

Marked as you go. Get 75% right to complete the lesson.

Getting your desk ready…

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.