+ 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

10th Jul 2019, 1:06 PM
PSS_Coding Strive
PSS_Coding Strive - avatar
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]
27th Jul 2019, 11:06 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar