score int excl

mail@pastecode.io avatar
unknown
python
a year ago
122 B
2
Indexable
Never
def ponctuation_score(text):
    num_excl = text.count("!")
    num_int = text.count("?")
    return num_excl - num_int