How can we reuse the boolean result of whether an element is in a list or not?

By storing it in a variableWe can't reuse it, we can only display it

By storing it in a variable.