Python operate ‘in’ on tuple won’t match by whole word
It seems the operator ‘in’ on tuple won’t only match the whole string if there is only one item in the tuple. The behavior is different from ‘list’ and ‘set’.
I don’t understand where the difference is coming from, it’s by design to have some specific usage or it’s a bug?