Alfonso Saballett wrote:So if I'm understanding you correctly if I run this program and I don't have a "4" or "5" in the input, it won't count it but when I run it by typing in, "This is a test. This is a test." I get the result of 9 shorts words and 22 long words obviously this is wrong but from what you are saying should it be 0 shorts words and 0 long words? I appreciate the help and patients. It was suggested earlier that I use the split() method, how?
Run this and tell us do you find any difficulties understanding this code snippet?
Vishal Pandya wrote:Henry, Do you want me to remove that code snippet? OP has nowhere mentioned about Split method that it is not allowed?