# Count the number of white spaces in a Sentence str=input("Enter the String:")count = 0for i in range(len(str)):    if str[i] == ' ':        count+=1print("Number of white space in a string are ",count)