Files
app-store-optimization/skills/loki-mode/benchmarks/results/humaneval-loki-solutions/16.py

13 lines
373 B
Python

# HumanEval/16
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
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
"""
return len(set(string.lower()))