HF RL Explorer

Implement the Python function specified below. Return ONLY the indented function body, without repeating the…

Implement the Python function specified below. Return ONLY the indented function body, without repeating the…: a task in unslop-harbor (Harbor dataset). def count distinct characters(string: str) - int: """ Given a string, find out how many distinct characters (regardless of case) does it consist…

The task

def count_distinct_characters(string: str) -> int: """ Given a string, find out how many distinct characters (regardless of case) does it consist of >>> count_distinct_characters('xyzXYZ') 3 >>> count_distinct_characters('Jerry') 4 """

Part of rawmodels/unslop-harbor.