Can someone assist with a snippet code for word count from a text file in python | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Can someone assist with a snippet code for word count from a text file in python

26th Aug 2017, 11:21 AM
Paul McOlaka
Paul McOlaka - avatar
2 Antworten
0
Sorry what I meant was a code to read a text file and display the word count for each word. Thanks
26th Aug 2017, 12:57 PM
Paul McOlaka
Paul McOlaka - avatar
0
I do not know whether it is snippet. some people tends to oversimplify, some tends to overcomplicate. here is my view, most of "standard" word separators are counted. https://code.sololearn.com/ck7VVj0Gv8Uf/?ref=app
26th Aug 2017, 4:17 PM
yuri