Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Python from Zero

Module 5 · Practice

Practice set: functions

Quick questions on the whole module, with instant feedback.

  • 35 minutes
  • Instant feedback
  • Unlimited attempts

35 minutes. Instant-marked. Unlimited attempts. Each answer is marked as soon as you choose it, with an explanation. Nothing is saved in this course.

P1. def f(x): return x + 1. f(4) is:

P2. A function with no return gives back:

P3. In def g(a, b): return a - b, g(10, 3) is:

P4. A variable made inside a function is:

P5. Defining a function without calling it:

P6. print inside a function and return are:

P7. def sq(n): return n * n. sq(sq(2)) is:

P8. A function should ideally do:

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards