Computer Science, asked by amanancy14114325, 8 months ago

WAP to accept Senlence
and Count the
number
of
word Present in Sentence​

Answers

Answered by pavithranatarajan855
1

Answer:

str=input()

count=0

for i in range(len(str)):

 if(str[i]==' '):

   count=count+1

print(count+1)

Explanation:

Similar questions