Skip to main content
5 of 9
added 21 characters in body

Python (17 11):

b in a in b 

(Checks if b is contained in a and a is contained in b, if that wasn't clear from the code.)

Alternatively: (8)

derived from Tom Verelst's Go solution:

b in [a] 

Bonus: this works for any type.