import Foundation let myWord = "Supercalifragilisticexpialidocious" var numberOfEsFound = 0 for eachChar in myWord { if eachChar == "e" { ++numberOfEsFound } } print ("I found \(numberOfEsFound) e's in \(myWord)")
The line for eachChar in myWord { keeps getting red stop signs (error notices) from the Xcode playground. It appears that the use of eachChar has deprecated, along with println.
I have changed println to print (as shown above), but I'm not sure what else to try. I'm not sure what else to try.
Please let me know if I've made a simple error. Thank you!