diff --git a/README.md b/README.md index e993a8f..4647ea6 100644 --- a/README.md +++ b/README.md @@ -3974,6 +3974,15 @@ Detailed answer can be found here: http://codingshell.com/python-all-string-perm
Count the number of spaces in a string
+ +You can use the "count" method like this: + +```python + +ImAString.count(" ") + +``` +