Benjamin Peterson added the comment:
In Python 2, input() is basically equivalent to eval(raw_input()). In Python 3,
input() is the same as raw_input() in Python 2. This explains the difference.
--
nosy: +benjamin.peterson
resolution: -> not a bug
status: open -> closed
__
New submission from Kozo Oeda:
if sentence doesn't work well with input() in Python 3(I confirmed 3.4.3 and
3.5.1 on OS X 10.10.5). I also confirmed Python 2.7.11 works well. I think the
code which I wrote in the lower section explains what happened enough.
I couldn't get the proper component