Course of Raku / Essentials / More about types / Positional data types

Exercises: Positional data types

This section contains 9 exercises.

  1. Square and cube
  2. Traffic lights
  3. The number of command-line arguments
  4. Print command-line arguments
  5. Count and print command-line arguments
  6. Months names
  7. Odd indices
  8. Print a series of numbers
  9. Spell a number

Refresh your knowledge

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

  • Positional data types
    • Arrays
    • Nested arrays
    • The @*ARGS array
    • Interpolating arrays
    • Lists
    • Quoting string arrays
    • Subscripting ranges

Course navigation

← Square and cube

Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська

The Complete Course of the Raku Programming Language

About the course · GitHub

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

© 2021–2026 by Andrew Shitov