DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+9 =
Submit