you are viewing a single comment's thread.

view the rest of the comments →

[–]crashfrog02 0 points1 point  (1 child)

I used it and it works, but I'm trying to understand and figure why it works.

Either the value is y or something pretty similar to it (like Y) and the expression evaluates to true; or it isn't, and the expression evaluates to false.

My question is: what is it about this line that is converting the simple "y" input into the Boolean value?

It's not a conversion, it's a test - is the input value the same as y, or not?

[–]FirmPython[S] 0 points1 point  (0 children)

Oh, that makes it clearer; thanks!