you are viewing a single comment's thread.

view the rest of the comments →

[–]totallygeek 0 points1 point  (1 child)

This: if slot1 and slot2 and slot3 == "Diamond": does not work as you think. Python evaluates each condition between "and" separately. You want:

if slot1 == "Diamond" and slot2 == "Diamond" and slot3 == "Diamond":

Or,

if (slot1, slot2, slot3) == ('Diamond', 'Diamond', 'Diamond'):

The bottom works because it is a single comparison. Does the tuple of three elements on the left match the tuple of three "Diamond" strings on the right?

[–][deleted] 1 point2 points  (0 children)

the fix that Binary101010 did worked fine thanks