Код: Выделить всё
a = []
# my understanding is that this is implicit
if not a:
print("list is empty")
# my understanding is that this is explicit
if len(a) == 0:
print("list is empty")
Подробнее здесь: https://stackoverflow.com/questions/640 ... n-implicit
Мобильная версия