InvalidVersionSpec: Invalid version ' 0 . 7 . 1 2 ': invalid character(s) 1

InvalidVersionSpec: Invalid version ‘ 0 . 7 . 1 2 ‘: invalid character(s)

open the .txt file in Notepad, choose 'ANSI' encoding instead of the default (Unicode) and save.

Here is what the above code is Doing:
1. It’s opening the .txt file in read mode.
2. It’s reading the file and storing the contents in a variable called ‘contents’.
3. It’s splitting the contents of the file into a list of words.
4. It’s counting the number of words in the list.
5. It’s printing the number of words in the list.

Similar Posts