manuskript/src/functions.py

8 lines
204 B
Python
Raw Normal View History

2015-06-05 06:22:37 +12:00
#!/usr/bin/env python
#--!-- coding: utf8 --!--
from __future__ import print_function
from __future__ import unicode_literals
def wordCount(text):
return len(text.strip().split(" ")) if text else 0