An tasc á lódáil…
This kind of check is useful when you want to measure how much variety a string contains, such as how many different letters or symbols appear in a text. Write a function count_distinct that counts only the unique characters in s. Case matters: "A" and "a" are considered different characters.
"hello"4"aaaa"1"abcABC"6def count_distinct(s: str) -> int:
Logáil isteach chun stair na n-aighneachtaí a fheiceáil
Logáil isteachLogáil isteach chun an Meantóir IS a úsáid
Logáil isteach"hello"4"aaaa"1"abcABC"6""0"a b c"4"mississippi"4