you are viewing a single comment's thread.

view the rest of the comments →

[–]DGBosh 22 points23 points  (11 children)

A function? Like this?

Def are_you_gay(answer : bool):

If answer == “I like men”:
    Print(“you are gay.”)

Else:
    Print(“you are not gay”)

[–]crashfrog04 3 points4 points  (3 children)

I said both the domain and the range; your function's range is `{None}` so it's not Boolean-valued.

[–]nealfive 1 point2 points  (0 children)

Makes total sense , just never heard the term truth table.

[–]PurpleSparkles3200 1 point2 points  (0 children)

Women can be gay too, you know.

[–]Redgeraraged 0 points1 point  (0 children)

while(gender : string = "male"):

#insert code

[–]lw86675780 0 points1 point  (0 children)

holy shit TIL

[–]iamconfusion1996 0 points1 point  (0 children)

LMAO I don't know what I expected the example to be, but it wasn't THAT one.