Explanation: method any() returns true if any key of the dictionary is true and false if the dictionary is empty.
Q. If b is a dictionary, what does any(b) do?
β
Correct Answer: (A)
returns true if any key of the dictionary is true
Explanation by: Mr. Dubey
method any() returns true if any key of the dictionary is true and false if the dictionary is empty.
Discussion
Question Analytics
973
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
95%
Success Rate