+ 3
Python question
How to check if a string have two words or more?Valid english words.
5 Answers
+ 12
HBhZ_C , what you can do is:
(1) split the input string to individual words. This will create a list
(2) check the length of the list using len().The number that results is the number of words in input.
What do you mean by saying "valid english words"? If you want to check if the words real exists, this is additional effort. Then you will need a corpus file with all words used in english language.
+ 7
HBhZ_C , before you can expect to get help here, you should have done a try by yourself first, and post it here. Thanks!
+ 2
Maybe Namit Jain bro can help you đđ
+ 2
Jan Markus, i am confused, because i thought NLTK means "Natural Language Toolkit"? Is there an other one with the same abbreviation?
+ 1
No Jan Markus it is the password validator code ;i have try but no good results.