0
sentence=input("Enter a sentence:") Can someone Just point out to me why it's showing syntax error in this particular line??? it's showing SyntaxError- Unexpected EOF while parsing
3 odpowiedzi
0
Your command is totally correct.
Maybe you are not finished previous command? What is showing at the start of the line?
>>> - new statement
... - previous statement is not completed
0
i am new in python too very new but i think you have to call the raw_input() function to pass the argument if I'm not mistaken.
0
Your code works perfectly when using Python3, but I guess you're using Python2 so you have to use
sentence = raw_input("Enter a sentence:")
Good luck ;)