"The number of words: Given a string consisting of words separated by spaces. Determine how many words it has. To solve the problem, use the method count. " - Snakify python coding question on February 23, 2022 Get link Facebook X Pinterest Email Other Apps CODING QUESTIONHere is question SOLUTION s=str(input())print(s.count(' ')+1) Input : Hello worldOutput : 2