Hi, guys I'm having trouble writing this word count program in python3. I've been able to find alot of help for past versions but nothing for 3.
It is just a simple word count program, with a user input sentence.
So far I have
print ("This program calculates the number of words in a sentence")
p =input("Enter a sentence: ")
words = line.split(p)
wordCount = len(words)
print ("The total word count is:", wordCount)