WAP to accept Senlence
and Count the
number
of
word Present in Sentence
Answers
Answered by
1
Answer:
str=input()
count=0
for i in range(len(str)):
if(str[i]==' '):
count=count+1
print(count+1)
Explanation:
Similar questions