59
задан 20 March 2016 в 00:15

1 ответ

"""
This function check if set is empty or not.
>>> c = set([])
>>> set_is_empty(c)
True

:param some_set: set to check if he empty or not.
:return True if empty, False otherwise.
"""
def set_is_empty(some_set):
    return some_set == set()
0
ответ дан 1 November 2019 в 11:33

Другие вопросы по тегам:

Похожие вопросы: