The CTP Book

A book for teaching Computational Thinking and Programming skills to people with a background in the Humanities

View on GitHub

Chapter “Programming languages”, exercise 2

Text

What is the boolean value of "spam" not in "spa span sparql" and not ("egg" > "span")?

Answer

"spam" not in "spa span sparql" and not ("egg" > "span") =>
True                            and not ("egg" > "span") =>
True                            and not False            =>
True                            and True                 =>
True