Course of Raku / Essentials / Typed variables

Exercises: Typed variables

This section contains 4 exercises.

  1. Create variables of all known types
  2. Examine the result of prompt — Strings
  3. Examine the result of prompt — Numbers
  4. Converting user input to a number

Refresh your knowledge

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

  • Typed variables
    • Type constraints
    • Using of
    • Type conversion for typed variables
    • Allomorphs

Course navigation

← Data type conversion / Converting types with prefix operators   |   Positional data types →

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