+ 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
1 Answer
+ 6
(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]