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

Quiz 2: Assigning two values

This time, the program is a bit more compact compared to its first variant. Please, fill in the missing elements.

( , ) my ␣$first-name␣ $last-name␣;
( , ) , ␣$first-name␣ $last-name␣ = 'E.'␣ '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.