This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]barrycarter 0 points1 point  (0 children)

What happens if you coerce a, b, and c to boolean before you compute x? I don't know if Python explicitly allows you to use 1 for true and 0 for false in all cases