Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…
Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…: a task in unslop-harbor (Harbor dataset). def check dict case(dict): """ Given a dictionary, return True if all keys are strings in lower case or all keys are strings in upper case, else…
The task
def check_dict_case(dict): """ Given a dictionary, return True if all keys are strings in lower case or all keys are strings in upper case, else return False. The function should return False is the given dictionary is empty. Examples: check_dict_case({"a":"apple", "b":"banana"}) should return True.…
Part of rawmodels/unslop-harbor.