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

4th Jul 2016, 4:30 AM
Debarun Barua
Debarun Barua - avatar
3 Answers
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
4th Jul 2016, 4:55 AM
Evgeniy
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.
5th Jul 2016, 1:04 AM
mohas
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 ;)
15th Jul 2016, 5:16 PM
Julian