Definition: A variable that can hold a single true/false (1/0) value.
Alright class, settle down now, let’s take a look,
At a word that’s important – it's quite a hook!
"Boolean," you see, is the name of the game,
A variable’s role, it's not quite the same.
Think of it like this, a simple choice,
Just
true
or
false
, with no noise!
The dictionary’s right, it’s plain to view,
A single value, just one and two –
One for
True
, zero for
False
, you see,
That's what a boolean variable can be!
It's used in logic, so clever and bright,
To make decisions, with all of its might.
Like if it’s raining, is it wet or dry?
A boolean answers, reaching for the sky!
Got any questions? Don't hesitate to ask,
Let's keep this learning flowing, a wonderful task!