def main():
p =input("Enter your sentence: ")
words = p.split()
wordCount = len(words)
print ("The word count is:", wordCount)
main()
I get the read out:
Enter your sentence: Hello world
Traceback (most recent call last): File "C:/Python27/idk.py", line 11, in <module> main() File "C:/Python27/idk.py", line 3, in main p =input("Enter your sentence: ") File "<string>", line 1 Hello world ^ SyntaxError: unexpected EOF while parsing
What am i doing wrong? D:
Edit:
Figured it out. Input -> raw_input