Course of Raku / Essentials / Associative data types / Hashes

Quiz 1 — Hashes

Correct the errors in the following program. Use the most compact syntax.

% @ = => => = => = => = my ␣data ␣␣ Jan ␣␣ 1045, Feb ␣␣ 2034, Mar ␣␣ 1987;
< { > } say %data␣Jan␣; Both {'Jan'} and <Jan> are correct, but the latter is shorter.
< { > } say %data␣Feb␣;  

Course navigation

Associative data types / Pairs   |   Associative data types / Nested hashes


💪 Or jump directly to the exercises to this section.