New to Python.
Say I wanted to get the total number of '.' or '!' in a body of text, what is the 'pythonic' way of doing so? I'd think there would be something like: text.count(LIST)
I realize the below would work, but wondering what the python people think.
for char in list(text):
if char in LIST:
sum += 1