SyntaxFix
Write A Post
Hire A Developer
Questions
How about using a simple loop to count the occurrences of number of spaces!?
txt = "Just an example here move along" _x000D_ count = 1_x000D_ for i in txt:_x000D_ if i == " ":_x000D_ count += 1_x000D_ print(count)