I’m a little confused about the python in operator for sets.
If I have a set s and some instance b, is it true that b in s means “is there some element x in s such that b == x is true“?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but it also means
hash(b) == hash(x), so equality of the items isn’t enough to make them the same.