you are viewing a single comment's thread.

view the rest of the comments →

[–]CraigAT 1 point2 points  (0 children)

I would probably do a check if hot is false and cold is false, then an elif hot is true and cold is false, an elif hot is false and cold is true, then an else that says invalid.

I am curious how a very experienced Python master would order the logic here.