This works as intended:
if c1 in r':6' or c2 in r':6':
subst_weight = 1
This doesn't:
if (c1 or c2) in r':6':
subst_weight = 1
Why and what is the differnce? The goal is to find out whether c1
or c2
is in the string.
Same here:
Works:
if c1 == '6' or c2 == '6':
Doesn't work:
if (c1 or c2) == '6':
Thanks