Hi,
I am clearly confused on testing for equivlance.
Why does the below print yes even though roll is not set to a matching number?
I see I need | but why does with the or keyword it come out as a match?
I am clearly confused on testing for equivlance.
Why does the below print yes even though roll is not set to a matching number?
roll = 12 if roll == 6 or 7 or 11 or 16 or 19: print ("yes") print (roll)
I see I need | but why does with the or keyword it come out as a match?