I have a .txt file that contain ten words(for example ten names) and i wanted to know how can i count the number of names, in this case 10. If i use len(names), the console gives me the length of the word, not the number of the names. Thank you
To count a number of strings in a txt file with python
To count a number of strings in a txt file with python
|
|
Messages In This Thread |
To count a number of strings in a txt file with python - by jpeich - Apr-22-2017, 02:55 PM
RE: To count a number of strings in a txt file with python - by Bass - Apr-22-2017, 03:08 PM
RE: To count a number of strings in a txt file with python - by snippsat - Apr-22-2017, 09:07 PM
RE: To count a number of strings in a txt file with python - by Bass - Apr-23-2017, 05:14 PM
RE: To count a number of strings in a txt file with python - by wavic - Apr-22-2017, 09:36 PM
RE: To count a number of strings in a txt file with python - by nilamo - Apr-29-2017, 05:22 PM
|
Users browsing this thread: 1 Guest(s)