+ 9
It is in the definition of all() function: ========================= Definition: all(__iterable: Iterable[object], /) -> bool Return True if bool(x) is True for all values x in the iterable. If the iterable is empty, return True. ============================ As in the last line of definition says, all() will return True if the iterable is empty.
16th Jun 2022, 7:22 AM
Siavash Kardar Tehran
Siavash Kardar Tehran - avatar