I'm new to Python.
I was reading a tutorial online, the author used str = input(), and then he enters a sentence. After that, he get the input string stored in str. However, when I was trying str = input() in my python shell, it does not work. Here is the error:
>>> a = input()
test sentence
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
a = input()
File "<string>", line 1
test sentence
^
SyntaxError: unexpected EOF while parsing
Can you tell me why is the case?