Cursus Raku / Elementa / Associativa data genera / Paria

Quiz — Paria

1

Complete the program to print the following output:

India
New Delhi

Here is the program:

. my $city = India => 'New Dehli';
key say $city.␣␣␣␣;
value say $city.␣␣␣␣;

2

What does this program print?

my $data = 1 => 2;
say $data.WHAT;
(Pair) Output: (: (Int), (Array), (Pair) :) This is a pair Pair $data = 1 => 2, where both the key and the value are integers.

Cursus navigatio

Associativa data genera   |   Associativa data genera / Hashes


💪 Or jump directly to the exercises to this section.

Haec pagina automatice translata est per ChatGPT 4o. Originalis Anglicus textus

Translationes huius paginae: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська