Q. If b is a dictionary, what does any(b) do?

  • (A) returns true if any key of the dictionary is true
  • (B) returns false if dictionary is empty
  • (C) returns true if all keys of the dictionary are true
  • (D) method any() doesn’t exist for dictionary
πŸ’¬ Discuss
βœ… Correct Answer: (A) returns true if any key of the dictionary is true
Explanation: method any() returns true if any key of the dictionary is true and false if the dictionary is empty.

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

πŸ‘οΈ
1017
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate