Challenge: Letter Frequency Counter
Oppgave
Swipe to start coding
Count and display the frequency of each letter in a given string.
- Only count alphabetic characters.
- Treat uppercase and lowercase versions of the same letter as the same character.
- Return a dictionary mapping each letter to its count.
- Display each letter and its frequency.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Letter Frequency Counter
Sveip for å vise menyen
Oppgave
Swipe to start coding
Count and display the frequency of each letter in a given string.
- Only count alphabetic characters.
- Treat uppercase and lowercase versions of the same letter as the same character.
- Return a dictionary mapping each letter to its count.
- Display each letter and its frequency.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 4
single