I am a beginner in python, when I was trying my first python structure code, I meet a question. I tried to add a False to my set, but when I add the False as well as several integers into the set, the elements in the set are only integers without False! As soon as I change one of the integer into float, the False will be an element in the set.
Here's my code:
mySet1 = {1,'cat',0.1,4,False,5}
mySet2 = {1,'cat',0,4,False,5}
mySet1
mySet2
the output is
{0.1, 1, 4, 5, False, 'cat'}
{0, 1, 4, 5, 'cat'}