Cargando el ejercicio…
Sometimes you need a quick breakdown of what a string contains: letters, digits, and everything else. The function count_char_types receives a string s and returns a list of three numbers. The first number is the count of letters, the second is the count of digits, and the third is the count of all other characters.
"abc123!!"[3, 3, 2]""[0, 0, 0]"hello"[5, 0, 0]def count_char_types(s: str) -> list[int]:
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesiónThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.