+1

Some one pls explain me how we are getting the output of the following question

question:- a=(0) b=[0],[[0]],{0},[(0)] for i in b: print(a in i) Output:- True False True True

7/10/2019 1:06:52 PM

NewLearner

1 Answer

New Answer

+5

(0) same 0, but (0) not same [0] 0 in [0] true 0 in [[0]] False, but [0] in [[0]] true 0 in {0} true [(0)] same [0]