Course of Raku / Essentials / More about types / 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

← Create variables of all known types

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