Python oddities: strange return values with any() and lists #python #coding #programming

preview_player
Показать описание
Call Python's any() function with a list or double-nested empty list returns False, but call it with a triply nested empty list returns True. Why does this happen?

#python #pythonprogramming #pythonoddities #coding #pythonprogrammer #code #programming #pythontutorial
Рекомендации по теме