Course of Raku / Essentials / Functions essentials / Creating and calling functions

Exercises: Creating and calling functions

This section contains 6 exercises.

  1. Function to compute xʸ
  2. Odd or even
  3. Recursive factorial
  4. Interval function
  5. Function table
  6. The value of e

Refresh your knowledge

Refer to the contents of this section to find the answers if needed.

  • Creating and calling functions
    • Function names
    • Function parameters
    • Returning the result
    • Positional parameters
    • Named parameters
    • Default values

Course navigation

← Function to compute xʸ

This page in other languages: English Deutsch Esperanto Español Italiano Latina Latviešu Nederlands Български Русский Українська

The Complete Course of the Raku Programming Language

About the course · Raku.org · Raku Playground · GitHub

Free and open source · Supported by The Perl & Raku Foundation

© 2021–2026 · Written by Andrew Shitov