# Python Program to Calculate the Number of Words and the Number of Characters Present in a String string=raw_input("Enter string:")char=0word=1for i in string:      char=char+1      if(i==' '):            word=word+1print("Number of words in the string:")print(word)print("Number of characters in the string:")print(char)