Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count number of spaces in string python

>>> a = "My test string"
>>> a.count(' ')
2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #spaces #string #python
ADD COMMENT
Topic
Name
1+9 =