Ruby:NOT of a Condition
There are several logical operators:
&& || !
We can invert a condition using
if is used with !, we can instead write
unless as in
unless name.include?("a"). Similarly, when
while is used with !, we can instead write
Which countries do not have an "a" in the name.