+ 1
Why the output is False????
8 ответов
+ 3
RAJESH SAHU
Your code is checking if array d is present in array d I then 'a' is present in array d.
What output you were expecting?
+ 3
'a' in d in d
internally translates to:
('a' in d) and (d in d).
The first part is true, but the second isn't, so the whole thing turns out False.
+ 2
Thanks honfu☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️
+ 2
Cbr✔[ Not Active ] Sorry, I don't know Python much, but whatever it is, output is False.
+ 2
If you want the output true
Its should be: (a in d) in d. Its must be associative.
0
you have "in d" twice, remove the second one
0
Steve Hope I am asking why this code has output as False...
I am not asking to correct it