counter=0 text=raw_input("text:") for char in text: if char==" ": counter+=1 return counter
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)