I know that if I want to get the intersection of two sets (or freezons), I must use ampersand & . Out of curiosity, I tried to use the word "and"
a = set([1,2,3]) b = set([3,4,5]) print(a and b)
I'm just wondering why? what does this mean and when used with lists?
python set
yahiaelgamal
source share