This website contains age-restricted materials including nudity and explicit depictions of sexual activity.
By entering, you affirm that you are at least 18 years of age or the age of majority in the jurisdiction you are accessing the website from and you consent to viewing sexually explicit content.
I had to double-take since in Python a common alternative to
trick ? treat : notreat
is(trick and treat) or notreat
But I don’t think this translates to overlapping circles very well. “trick implies treat” is only defined inside the trick circle, outside is undefined if treat is true or not.
I’m not going to draw a diagram, but here’s the “truth table” for A implies B:
A, B, A -> B N, N, undefined N, Y, undefined Y, N, false Y, Y, true
If A is false, A -> B is true regardless of what B is, so the two undefined terms in your truth table should be true.
So it is fairly easily translated into a shaded Venn Diagram. It’s simply everything shaded aside from Trick only.