Please support this website.
Visit the Amazon using this affiliate link
. There won't be any difference in your purchage, we will get some commission for every purchase you make.
Advertise with us
Python Multiple Choice Questions
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
Explanation: Method any() returns True if any key of the dictionary is true and False if the dictionary is empty.
© 2022-2023 Python Circle