Course of Raku / Essentials / Boolean type / Exercises

Double negation

Problem

What is the output of the following program?

my $value = False;
say !!$value;

Extend the program to repeat the actions, but for the value of True.

Solution

See the solution

Next exercise

💪 Triple negation

Course navigation

Numbers / Operations with numbers   |   Ranges