Strings In Depth3 / 18
Up next

String and Character

let word = "café"
// a Character is one grapheme; iterate to get each one
for ch: Character in word {
    print(ch)
}
// count is the number of Characters, not bytes
print(word.count)
What you're solving

a String is a sequence of Characters