Course of Raku / Essentials / Scalar variables / Assigning a value

Quiz 1: Assigning a value

Complete the following lines of code to get a working program that creates a few variables and assigns some values to them.

. my $first-name;
$ my ␣last-name;
= $first-name ␣ 'Emily';
= ; $last-name ␣ 'Lizards'␣
; say $first-name␣
. say $last-name;

Course navigation

Scalar variables / Declaring a variable   |   Scalar variables / Declaration with initialization


💪 Or jump directly to the exercises to this section.

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська