Sep-26-2019, 05:06 AM
It's not good idea to use 'Dict' as variable name. It's too similar to built-in 'dict'. This name also have no hint what dictionary it is. Maybe something along this - 'contar_palabras' (pardon my spanish :-))
If I understand correctly then your problem is that last words in sentence which have punctuation at end with no space are counted as different words. You should get rid of punctuation, either using your own punctuation list (like '!.?,:;"') or using string.punctuation
If I understand correctly then your problem is that last words in sentence which have punctuation at end with no space are counted as different words. You should get rid of punctuation, either using your own punctuation list (like '!.?,:;"') or using string.punctuation
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.