let string = "hello world" for (index, char) in string.enumerated() { print("index = (index), character = (char)") }