How to count number of space in given string in python [duplicate]
Solution 1:
>>> a=input("Enter the value ")
Enter the value "My Testing String"
>>> a.count(' ')
2
>>> a=input("Enter the value ")
Enter the value "My Testing String"
>>> a.count(' ')
2